From 8e70678b9757765de4b20e790cddc02498b6bfec Mon Sep 17 00:00:00 2001 From: Adam Halfar Date: Mon, 14 Oct 2024 15:16:39 +0200 Subject: [PATCH 1/4] Make method annotations more strict --- src/View/Helper/DocBlockHelper.php | 29 ++++++++++--------- ...iationDetectionCategoriesProductsTable.php | 16 +++++----- ...akeAssociationDetectionCategoriesTable.php | 16 +++++----- ...ociationDetectionCategoriesTableSigned.php | 16 +++++----- ...keAssociationDetectionOldProductsTable.php | 16 +++++----- ...ciationDetectionOldProductsTableSigned.php | 16 +++++----- ...sociationDetectionProductVersionsTable.php | 16 +++++----- ...ionDetectionProductVersionsTableSigned.php | 16 +++++----- .../comparisons/Model/testBakeTableConfig.php | 16 +++++----- .../Model/testBakeTableNullableForeignKey.php | 16 +++++----- .../comparisons/Model/testBakeTableRules.php | 16 +++++----- .../Model/testBakeTableValidation.php | 16 +++++----- .../Model/testBakeTableWithCounterCache.php | 16 +++++----- .../Model/testBakeTableWithEnum.php | 16 +++++----- .../Model/testBakeTableWithPlugin.php | 16 +++++----- .../comparisons/Model/testBakeUpdateTable.php | 16 +++++----- .../Model/testBakeUpdateTableNoFile.php | 16 +++++----- .../Model/testBakeWithRulesUnique.php | 16 +++++----- .../App/Model/Table/ParseTestTable.php | 16 +++++----- 19 files changed, 160 insertions(+), 157 deletions(-) diff --git a/src/View/Helper/DocBlockHelper.php b/src/View/Helper/DocBlockHelper.php index f93c9917..27862061 100644 --- a/src/View/Helper/DocBlockHelper.php +++ b/src/View/Helper/DocBlockHelper.php @@ -290,20 +290,23 @@ public function buildTableAnnotations( } } } + + $entityPath = "\\{$namespace}\\Model\\Entity\\{$entity}"; + // phpcs:disable - $annotations[] = "@method \\{$namespace}\\Model\\Entity\\{$entity} newEmptyEntity()"; - $annotations[] = "@method \\{$namespace}\\Model\\Entity\\{$entity} newEntity(array \$data, array \$options = [])"; - $annotations[] = "@method array<\\{$namespace}\\Model\\Entity\\{$entity}> newEntities(array \$data, array \$options = [])"; - $annotations[] = "@method \\{$namespace}\\Model\\Entity\\{$entity} get(mixed \$primaryKey, array|string \$finder = 'all', \\Psr\\SimpleCache\\CacheInterface|string|null \$cache = null, \Closure|string|null \$cacheKey = null, mixed ...\$args)"; - $annotations[] = "@method \\{$namespace}\\Model\\Entity\\{$entity} findOrCreate(\$search, ?callable \$callback = null, array \$options = [])"; - $annotations[] = "@method \\{$namespace}\\Model\\Entity\\{$entity} patchEntity(\\Cake\\Datasource\\EntityInterface \$entity, array \$data, array \$options = [])"; - $annotations[] = "@method array<\\{$namespace}\\Model\\Entity\\{$entity}> patchEntities(iterable \$entities, array \$data, array \$options = [])"; - $annotations[] = "@method \\{$namespace}\\Model\\Entity\\{$entity}|false save(\\Cake\\Datasource\\EntityInterface \$entity, array \$options = [])"; - $annotations[] = "@method \\{$namespace}\\Model\\Entity\\{$entity} saveOrFail(\\Cake\\Datasource\\EntityInterface \$entity, array \$options = [])"; - $annotations[] = "@method iterable<\\{$namespace}\\Model\\Entity\\{$entity}>|\Cake\Datasource\ResultSetInterface<\\{$namespace}\\Model\\Entity\\{$entity}>|false saveMany(iterable \$entities, array \$options = [])"; - $annotations[] = "@method iterable<\\{$namespace}\\Model\\Entity\\{$entity}>|\Cake\Datasource\ResultSetInterface<\\{$namespace}\\Model\\Entity\\{$entity}> saveManyOrFail(iterable \$entities, array \$options = [])"; - $annotations[] = "@method iterable<\\{$namespace}\\Model\\Entity\\{$entity}>|\Cake\Datasource\ResultSetInterface<\\{$namespace}\\Model\\Entity\\{$entity}>|false deleteMany(iterable \$entities, array \$options = [])"; - $annotations[] = "@method iterable<\\{$namespace}\\Model\\Entity\\{$entity}>|\Cake\Datasource\ResultSetInterface<\\{$namespace}\\Model\\Entity\\{$entity}> deleteManyOrFail(iterable \$entities, array \$options = [])"; + $annotations[] = "@method $entityPath newEmptyEntity()"; + $annotations[] = "@method $entityPath newEntity(array \$data, array \$options = [])"; + $annotations[] = "@method array<$entityPath> newEntities(array \$data, array \$options = [])"; + $annotations[] = "@method $entityPath get(mixed \$primaryKey, array|string \$finder = 'all', \\Psr\\SimpleCache\\CacheInterface|string|null \$cache = null, \Closure|string|null \$cacheKey = null, mixed ...\$args)"; + $annotations[] = "@method $entityPath findOrCreate(\$search, ?callable \$callback = null, array \$options = [])"; + $annotations[] = "@method $entityPath patchEntity($entityPath \$entity, array \$data, array \$options = [])"; + $annotations[] = "@method array<$entityPath> patchEntities(iterable<$entityPath> \$entities, array \$data, array \$options = [])"; + $annotations[] = "@method $entityPath|false save($entityPath \$entity, array \$options = [])"; + $annotations[] = "@method $entityPath saveOrFail($entityPath \$entity, array \$options = [])"; + $annotations[] = "@method iterable<$entityPath>|\Cake\Datasource\ResultSetInterface<$entityPath>|false saveMany(iterable<$entityPath> \$entities, array \$options = [])"; + $annotations[] = "@method iterable<$entityPath>|\Cake\Datasource\ResultSetInterface<$entityPath> saveManyOrFail(iterable<$entityPath> \$entities, array \$options = [])"; + $annotations[] = "@method iterable<$entityPath>|\Cake\Datasource\ResultSetInterface<$entityPath>|false deleteMany(iterable<$entityPath> \$entities, array \$options = [])"; + $annotations[] = "@method iterable<$entityPath>|\Cake\Datasource\ResultSetInterface<$entityPath> deleteManyOrFail(iterable<$entityPath> \$entities, array \$options = [])"; // phpcs:enable foreach ($behaviors as $behavior => $behaviorData) { $className = App::className($behavior, 'Model/Behavior', 'Behavior'); diff --git a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesProductsTable.php b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesProductsTable.php index c5fff2bf..b843791b 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesProductsTable.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesProductsTable.php @@ -19,14 +19,14 @@ * @method array<\Bake\Test\App\Model\Entity\CategoriesProduct> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\CategoriesProduct get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\CategoriesProduct findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\CategoriesProduct patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\CategoriesProduct> patchEntities(iterable $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\CategoriesProduct|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\CategoriesProduct saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct>|false saveMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct> saveManyOrFail(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct>|false deleteMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct> deleteManyOrFail(iterable $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\CategoriesProduct patchEntity(\Bake\Test\App\Model\Entity\CategoriesProduct $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\CategoriesProduct> patchEntities(iterable<\Bake\Test\App\Model\Entity\CategoriesProduct> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\CategoriesProduct|false save(\Bake\Test\App\Model\Entity\CategoriesProduct $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\CategoriesProduct saveOrFail(\Bake\Test\App\Model\Entity\CategoriesProduct $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct>|false saveMany(iterable<\Bake\Test\App\Model\Entity\CategoriesProduct> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\CategoriesProduct> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\CategoriesProduct> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\CategoriesProduct> $entities, array $options = []) */ class CategoriesProductsTable extends Table { diff --git a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTable.php b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTable.php index de31577f..9d38fcbc 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTable.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTable.php @@ -18,14 +18,14 @@ * @method array<\Bake\Test\App\Model\Entity\Category> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\Category get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\Category findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\Category patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\Category> patchEntities(iterable $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\Category|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\Category saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false saveMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> saveManyOrFail(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false deleteMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> deleteManyOrFail(iterable $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\Category patchEntity(\Bake\Test\App\Model\Entity\Category $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\Category> patchEntities(iterable<\Bake\Test\App\Model\Entity\Category> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\Category|false save(\Bake\Test\App\Model\Entity\Category $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\Category saveOrFail(\Bake\Test\App\Model\Entity\Category $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false saveMany(iterable<\Bake\Test\App\Model\Entity\Category> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\Category> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\Category> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\Category> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTableSigned.php b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTableSigned.php index de31577f..9d38fcbc 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTableSigned.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTableSigned.php @@ -18,14 +18,14 @@ * @method array<\Bake\Test\App\Model\Entity\Category> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\Category get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\Category findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\Category patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\Category> patchEntities(iterable $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\Category|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\Category saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false saveMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> saveManyOrFail(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false deleteMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> deleteManyOrFail(iterable $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\Category patchEntity(\Bake\Test\App\Model\Entity\Category $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\Category> patchEntities(iterable<\Bake\Test\App\Model\Entity\Category> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\Category|false save(\Bake\Test\App\Model\Entity\Category $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\Category saveOrFail(\Bake\Test\App\Model\Entity\Category $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false saveMany(iterable<\Bake\Test\App\Model\Entity\Category> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\Category> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\Category> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\Category> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTable.php b/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTable.php index 9c3535bc..a8c2bba0 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTable.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTable.php @@ -16,14 +16,14 @@ * @method array<\Bake\Test\App\Model\Entity\OldProduct> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\OldProduct get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\OldProduct findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\OldProduct patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\OldProduct> patchEntities(iterable $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\OldProduct|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\OldProduct saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false saveMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> saveManyOrFail(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false deleteMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> deleteManyOrFail(iterable $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct patchEntity(\Bake\Test\App\Model\Entity\OldProduct $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\OldProduct> patchEntities(iterable<\Bake\Test\App\Model\Entity\OldProduct> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct|false save(\Bake\Test\App\Model\Entity\OldProduct $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct saveOrFail(\Bake\Test\App\Model\Entity\OldProduct $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false saveMany(iterable<\Bake\Test\App\Model\Entity\OldProduct> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\OldProduct> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\OldProduct> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\OldProduct> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTableSigned.php b/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTableSigned.php index 9c3535bc..a8c2bba0 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTableSigned.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTableSigned.php @@ -16,14 +16,14 @@ * @method array<\Bake\Test\App\Model\Entity\OldProduct> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\OldProduct get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\OldProduct findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\OldProduct patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\OldProduct> patchEntities(iterable $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\OldProduct|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\OldProduct saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false saveMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> saveManyOrFail(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false deleteMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> deleteManyOrFail(iterable $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct patchEntity(\Bake\Test\App\Model\Entity\OldProduct $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\OldProduct> patchEntities(iterable<\Bake\Test\App\Model\Entity\OldProduct> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct|false save(\Bake\Test\App\Model\Entity\OldProduct $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct saveOrFail(\Bake\Test\App\Model\Entity\OldProduct $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false saveMany(iterable<\Bake\Test\App\Model\Entity\OldProduct> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\OldProduct> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\OldProduct> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\OldProduct> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTable.php b/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTable.php index c6723816..d2559393 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTable.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTable.php @@ -18,14 +18,14 @@ * @method array<\Bake\Test\App\Model\Entity\ProductVersion> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\ProductVersion get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\ProductVersion findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\ProductVersion patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\ProductVersion> patchEntities(iterable $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\ProductVersion|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\ProductVersion saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false saveMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> saveManyOrFail(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false deleteMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> deleteManyOrFail(iterable $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion patchEntity(\Bake\Test\App\Model\Entity\ProductVersion $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\ProductVersion> patchEntities(iterable<\Bake\Test\App\Model\Entity\ProductVersion> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion|false save(\Bake\Test\App\Model\Entity\ProductVersion $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion saveOrFail(\Bake\Test\App\Model\Entity\ProductVersion $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false saveMany(iterable<\Bake\Test\App\Model\Entity\ProductVersion> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\ProductVersion> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\ProductVersion> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\ProductVersion> $entities, array $options = []) */ class ProductVersionsTable extends Table { diff --git a/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTableSigned.php b/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTableSigned.php index 9e3a4a62..a5b4e05f 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTableSigned.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTableSigned.php @@ -18,14 +18,14 @@ * @method array<\Bake\Test\App\Model\Entity\ProductVersion> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\ProductVersion get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\ProductVersion findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\ProductVersion patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\ProductVersion> patchEntities(iterable $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\ProductVersion|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\ProductVersion saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false saveMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> saveManyOrFail(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false deleteMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> deleteManyOrFail(iterable $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion patchEntity(\Bake\Test\App\Model\Entity\ProductVersion $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\ProductVersion> patchEntities(iterable<\Bake\Test\App\Model\Entity\ProductVersion> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion|false save(\Bake\Test\App\Model\Entity\ProductVersion $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion saveOrFail(\Bake\Test\App\Model\Entity\ProductVersion $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false saveMany(iterable<\Bake\Test\App\Model\Entity\ProductVersion> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\ProductVersion> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\ProductVersion> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\ProductVersion> $entities, array $options = []) */ class ProductVersionsTable extends Table { diff --git a/tests/comparisons/Model/testBakeTableConfig.php b/tests/comparisons/Model/testBakeTableConfig.php index 16309d95..9fe63ef7 100644 --- a/tests/comparisons/Model/testBakeTableConfig.php +++ b/tests/comparisons/Model/testBakeTableConfig.php @@ -21,14 +21,14 @@ * @method array<\Bake\Test\App\Model\Entity\Item> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\Item get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\Item findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\Item patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\Item> patchEntities(iterable $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\Item|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\Item saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item>|false saveMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item> saveManyOrFail(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item>|false deleteMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item> deleteManyOrFail(iterable $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\Item patchEntity(\Bake\Test\App\Model\Entity\Item $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\Item> patchEntities(iterable<\Bake\Test\App\Model\Entity\Item> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\Item|false save(\Bake\Test\App\Model\Entity\Item $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\Item saveOrFail(\Bake\Test\App\Model\Entity\Item $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item>|false saveMany(iterable<\Bake\Test\App\Model\Entity\Item> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\Item> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\Item> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\Item> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeTableNullableForeignKey.php b/tests/comparisons/Model/testBakeTableNullableForeignKey.php index fb344af0..37a62a9c 100644 --- a/tests/comparisons/Model/testBakeTableNullableForeignKey.php +++ b/tests/comparisons/Model/testBakeTableNullableForeignKey.php @@ -16,14 +16,14 @@ * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\TestBakeArticle get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\TestBakeArticle findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false saveMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> saveManyOrFail(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false deleteMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> deleteManyOrFail(iterable $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle patchEntity(\Bake\Test\App\Model\Entity\TestBakeArticle $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle|false save(\Bake\Test\App\Model\Entity\TestBakeArticle $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle saveOrFail(\Bake\Test\App\Model\Entity\TestBakeArticle $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false saveMany(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeTableRules.php b/tests/comparisons/Model/testBakeTableRules.php index a75c89d0..42732cdb 100644 --- a/tests/comparisons/Model/testBakeTableRules.php +++ b/tests/comparisons/Model/testBakeTableRules.php @@ -16,14 +16,14 @@ * @method array<\Bake\Test\App\Model\Entity\UniqueField> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\UniqueField get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\UniqueField findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\UniqueField patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\UniqueField> patchEntities(iterable $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\UniqueField|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\UniqueField saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField>|false saveMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField> saveManyOrFail(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField>|false deleteMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField> deleteManyOrFail(iterable $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\UniqueField patchEntity(\Bake\Test\App\Model\Entity\UniqueField $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\UniqueField> patchEntities(iterable<\Bake\Test\App\Model\Entity\UniqueField> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\UniqueField|false save(\Bake\Test\App\Model\Entity\UniqueField $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\UniqueField saveOrFail(\Bake\Test\App\Model\Entity\UniqueField $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField>|false saveMany(iterable<\Bake\Test\App\Model\Entity\UniqueField> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\UniqueField> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\UniqueField> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\UniqueField> $entities, array $options = []) */ class UniqueFieldsTable extends Table { diff --git a/tests/comparisons/Model/testBakeTableValidation.php b/tests/comparisons/Model/testBakeTableValidation.php index fb344af0..37a62a9c 100644 --- a/tests/comparisons/Model/testBakeTableValidation.php +++ b/tests/comparisons/Model/testBakeTableValidation.php @@ -16,14 +16,14 @@ * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\TestBakeArticle get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\TestBakeArticle findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false saveMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> saveManyOrFail(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false deleteMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> deleteManyOrFail(iterable $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle patchEntity(\Bake\Test\App\Model\Entity\TestBakeArticle $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle|false save(\Bake\Test\App\Model\Entity\TestBakeArticle $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle saveOrFail(\Bake\Test\App\Model\Entity\TestBakeArticle $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false saveMany(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeTableWithCounterCache.php b/tests/comparisons/Model/testBakeTableWithCounterCache.php index 7e5369e0..044d0ad2 100644 --- a/tests/comparisons/Model/testBakeTableWithCounterCache.php +++ b/tests/comparisons/Model/testBakeTableWithCounterCache.php @@ -18,14 +18,14 @@ * @method array<\Bake\Test\App\Model\Entity\TodoTask> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\TodoTask get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\TodoTask findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoTask patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TodoTask> patchEntities(iterable $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoTask|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoTask saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask>|false saveMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask> saveManyOrFail(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask>|false deleteMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask> deleteManyOrFail(iterable $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoTask patchEntity(\Bake\Test\App\Model\Entity\TodoTask $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\TodoTask> patchEntities(iterable<\Bake\Test\App\Model\Entity\TodoTask> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoTask|false save(\Bake\Test\App\Model\Entity\TodoTask $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoTask saveOrFail(\Bake\Test\App\Model\Entity\TodoTask $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask>|false saveMany(iterable<\Bake\Test\App\Model\Entity\TodoTask> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\TodoTask> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\TodoTask> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\TodoTask> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior * @mixin \Cake\ORM\Behavior\CounterCacheBehavior diff --git a/tests/comparisons/Model/testBakeTableWithEnum.php b/tests/comparisons/Model/testBakeTableWithEnum.php index 07a54bbb..08d83a22 100644 --- a/tests/comparisons/Model/testBakeTableWithEnum.php +++ b/tests/comparisons/Model/testBakeTableWithEnum.php @@ -16,14 +16,14 @@ * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\TestBakeArticle get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\TestBakeArticle findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false saveMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> saveManyOrFail(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false deleteMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> deleteManyOrFail(iterable $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle patchEntity(\Bake\Test\App\Model\Entity\TestBakeArticle $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle|false save(\Bake\Test\App\Model\Entity\TestBakeArticle $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle saveOrFail(\Bake\Test\App\Model\Entity\TestBakeArticle $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false saveMany(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeTableWithPlugin.php b/tests/comparisons/Model/testBakeTableWithPlugin.php index 6ca47126..38daf4d0 100644 --- a/tests/comparisons/Model/testBakeTableWithPlugin.php +++ b/tests/comparisons/Model/testBakeTableWithPlugin.php @@ -19,14 +19,14 @@ * @method array<\BakeTest\Model\Entity\User> newEntities(array $data, array $options = []) * @method \BakeTest\Model\Entity\User get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \BakeTest\Model\Entity\User findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \BakeTest\Model\Entity\User patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\BakeTest\Model\Entity\User> patchEntities(iterable $entities, array $data, array $options = []) - * @method \BakeTest\Model\Entity\User|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \BakeTest\Model\Entity\User saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User>|false saveMany(iterable $entities, array $options = []) - * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User> saveManyOrFail(iterable $entities, array $options = []) - * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User>|false deleteMany(iterable $entities, array $options = []) - * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User> deleteManyOrFail(iterable $entities, array $options = []) + * @method \BakeTest\Model\Entity\User patchEntity(\BakeTest\Model\Entity\User $entity, array $data, array $options = []) + * @method array<\BakeTest\Model\Entity\User> patchEntities(iterable<\BakeTest\Model\Entity\User> $entities, array $data, array $options = []) + * @method \BakeTest\Model\Entity\User|false save(\BakeTest\Model\Entity\User $entity, array $options = []) + * @method \BakeTest\Model\Entity\User saveOrFail(\BakeTest\Model\Entity\User $entity, array $options = []) + * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User>|false saveMany(iterable<\BakeTest\Model\Entity\User> $entities, array $options = []) + * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User> saveManyOrFail(iterable<\BakeTest\Model\Entity\User> $entities, array $options = []) + * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User>|false deleteMany(iterable<\BakeTest\Model\Entity\User> $entities, array $options = []) + * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User> deleteManyOrFail(iterable<\BakeTest\Model\Entity\User> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeUpdateTable.php b/tests/comparisons/Model/testBakeUpdateTable.php index 864394da..4b0ea044 100644 --- a/tests/comparisons/Model/testBakeUpdateTable.php +++ b/tests/comparisons/Model/testBakeUpdateTable.php @@ -23,14 +23,14 @@ * @method array<\Bake\Test\App\Model\Entity\TodoItem> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\TodoItem get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\TodoItem findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TodoItem> patchEntities(iterable $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false saveMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> saveManyOrFail(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false deleteMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> deleteManyOrFail(iterable $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem patchEntity(\Bake\Test\App\Model\Entity\TodoItem $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\TodoItem> patchEntities(iterable<\Bake\Test\App\Model\Entity\TodoItem> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem|false save(\Bake\Test\App\Model\Entity\TodoItem $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem saveOrFail(\Bake\Test\App\Model\Entity\TodoItem $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false saveMany(iterable<\Bake\Test\App\Model\Entity\TodoItem> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\TodoItem> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\TodoItem> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\TodoItem> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeUpdateTableNoFile.php b/tests/comparisons/Model/testBakeUpdateTableNoFile.php index 0d262638..b6ea78a7 100644 --- a/tests/comparisons/Model/testBakeUpdateTableNoFile.php +++ b/tests/comparisons/Model/testBakeUpdateTableNoFile.php @@ -21,14 +21,14 @@ * @method array<\Bake\Test\App\Model\Entity\TodoItem> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\TodoItem get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\TodoItem findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TodoItem> patchEntities(iterable $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false saveMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> saveManyOrFail(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false deleteMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> deleteManyOrFail(iterable $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem patchEntity(\Bake\Test\App\Model\Entity\TodoItem $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\TodoItem> patchEntities(iterable<\Bake\Test\App\Model\Entity\TodoItem> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem|false save(\Bake\Test\App\Model\Entity\TodoItem $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem saveOrFail(\Bake\Test\App\Model\Entity\TodoItem $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false saveMany(iterable<\Bake\Test\App\Model\Entity\TodoItem> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\TodoItem> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\TodoItem> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\TodoItem> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeWithRulesUnique.php b/tests/comparisons/Model/testBakeWithRulesUnique.php index 775080bf..d2287d27 100644 --- a/tests/comparisons/Model/testBakeWithRulesUnique.php +++ b/tests/comparisons/Model/testBakeWithRulesUnique.php @@ -19,14 +19,14 @@ * @method array<\Bake\Test\App\Model\Entity\User> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\User get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\User findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\User patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\User> patchEntities(iterable $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\User|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\User saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User>|false saveMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User> saveManyOrFail(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User>|false deleteMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User> deleteManyOrFail(iterable $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\User patchEntity(\Bake\Test\App\Model\Entity\User $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\User> patchEntities(iterable<\Bake\Test\App\Model\Entity\User> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\User|false save(\Bake\Test\App\Model\Entity\User $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\User saveOrFail(\Bake\Test\App\Model\Entity\User $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User>|false saveMany(iterable<\Bake\Test\App\Model\Entity\User> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\User> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\User> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\User> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/test_app/App/Model/Table/ParseTestTable.php b/tests/test_app/App/Model/Table/ParseTestTable.php index 30315da8..75e108d7 100644 --- a/tests/test_app/App/Model/Table/ParseTestTable.php +++ b/tests/test_app/App/Model/Table/ParseTestTable.php @@ -16,14 +16,14 @@ * @method array<\Bake\Test\App\Model\Entity\ParseTestTable> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\ParseTestTable get($primaryKey, array $options = []) * @method \Bake\Test\App\Model\Entity\ParseTestTable findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\ParseTestTable patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\ParseTestTable> patchEntities(iterable $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\ParseTestTable|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\ParseTestTable saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable>|false saveMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable> saveManyOrFail(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable>|false deleteMany(iterable $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable> deleteManyOrFail(iterable $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\ParseTestTable patchEntity(\Bake\Test\App\Model\Entity\ParseTestTable $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\ParseTestTable> patchEntities(iterable<\Bake\Test\App\Model\Entity\ParseTestTable> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\ParseTestTable|false save(\Bake\Test\App\Model\Entity\ParseTestTable $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\ParseTestTable saveOrFail(\Bake\Test\App\Model\Entity\ParseTestTable $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable>|false saveMany(iterable<\Bake\Test\App\Model\Entity\ParseTestTable> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\ParseTestTable> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\ParseTestTable> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\ParseTestTable> $entities, array $options = []) */ class ParseTestTable extends Table { From b7598db7673a8121ce3a3548669bfcf3f3565ae2 Mon Sep 17 00:00:00 2001 From: Adam Halfar Date: Mon, 14 Oct 2024 16:31:10 +0200 Subject: [PATCH 2/4] Change entity params to be less strict, add more precise type to arrays --- src/View/Helper/DocBlockHelper.php | 24 +++++++++---------- ...iationDetectionCategoriesProductsTable.php | 24 +++++++++---------- ...akeAssociationDetectionCategoriesTable.php | 24 +++++++++---------- ...ociationDetectionCategoriesTableSigned.php | 14 +++++------ ...keAssociationDetectionOldProductsTable.php | 24 +++++++++---------- ...ciationDetectionOldProductsTableSigned.php | 14 +++++------ ...sociationDetectionProductVersionsTable.php | 14 +++++------ ...ionDetectionProductVersionsTableSigned.php | 24 +++++++++---------- .../comparisons/Model/testBakeTableConfig.php | 24 +++++++++---------- .../Model/testBakeTableNullableForeignKey.php | 24 +++++++++---------- .../comparisons/Model/testBakeTableRules.php | 24 +++++++++---------- .../Model/testBakeTableValidation.php | 24 +++++++++---------- .../Model/testBakeTableWithCounterCache.php | 24 +++++++++---------- .../Model/testBakeTableWithEnum.php | 14 +++++------ .../Model/testBakeTableWithPlugin.php | 24 +++++++++---------- .../comparisons/Model/testBakeUpdateTable.php | 24 +++++++++---------- .../Model/testBakeUpdateTableNoFile.php | 24 +++++++++---------- .../Model/testBakeWithRulesUnique.php | 24 +++++++++---------- .../App/Model/Table/ParseTestTable.php | 14 +++++------ 19 files changed, 203 insertions(+), 203 deletions(-) diff --git a/src/View/Helper/DocBlockHelper.php b/src/View/Helper/DocBlockHelper.php index 27862061..0ad1b492 100644 --- a/src/View/Helper/DocBlockHelper.php +++ b/src/View/Helper/DocBlockHelper.php @@ -295,18 +295,18 @@ public function buildTableAnnotations( // phpcs:disable $annotations[] = "@method $entityPath newEmptyEntity()"; - $annotations[] = "@method $entityPath newEntity(array \$data, array \$options = [])"; - $annotations[] = "@method array<$entityPath> newEntities(array \$data, array \$options = [])"; - $annotations[] = "@method $entityPath get(mixed \$primaryKey, array|string \$finder = 'all', \\Psr\\SimpleCache\\CacheInterface|string|null \$cache = null, \Closure|string|null \$cacheKey = null, mixed ...\$args)"; - $annotations[] = "@method $entityPath findOrCreate(\$search, ?callable \$callback = null, array \$options = [])"; - $annotations[] = "@method $entityPath patchEntity($entityPath \$entity, array \$data, array \$options = [])"; - $annotations[] = "@method array<$entityPath> patchEntities(iterable<$entityPath> \$entities, array \$data, array \$options = [])"; - $annotations[] = "@method $entityPath|false save($entityPath \$entity, array \$options = [])"; - $annotations[] = "@method $entityPath saveOrFail($entityPath \$entity, array \$options = [])"; - $annotations[] = "@method iterable<$entityPath>|\Cake\Datasource\ResultSetInterface<$entityPath>|false saveMany(iterable<$entityPath> \$entities, array \$options = [])"; - $annotations[] = "@method iterable<$entityPath>|\Cake\Datasource\ResultSetInterface<$entityPath> saveManyOrFail(iterable<$entityPath> \$entities, array \$options = [])"; - $annotations[] = "@method iterable<$entityPath>|\Cake\Datasource\ResultSetInterface<$entityPath>|false deleteMany(iterable<$entityPath> \$entities, array \$options = [])"; - $annotations[] = "@method iterable<$entityPath>|\Cake\Datasource\ResultSetInterface<$entityPath> deleteManyOrFail(iterable<$entityPath> \$entities, array \$options = [])"; + $annotations[] = "@method $entityPath newEntity(array \$data, array \$options = [])"; + $annotations[] = "@method array<$entityPath> newEntities(array \$data, array \$options = [])"; + $annotations[] = "@method $entityPath get(mixed \$primaryKey, array|string \$finder = 'all', \\Psr\\SimpleCache\\CacheInterface|string|null \$cache = null, \Closure|string|null \$cacheKey = null, mixed ...\$args)"; + $annotations[] = "@method $entityPath findOrCreate(\$search, ?callable \$callback = null, array \$options = [])"; + $annotations[] = "@method $entityPath patchEntity(\\Cake\\Datasource\\EntityInterface \$entity, array \$data, array \$options = [])"; + $annotations[] = "@method array<$entityPath> patchEntities(iterable<\\Cake\\Datasource\\EntityInterface> \$entities, array \$data, array \$options = [])"; + $annotations[] = "@method $entityPath|false save(\\Cake\\Datasource\\EntityInterface \$entity, array \$options = [])"; + $annotations[] = "@method $entityPath saveOrFail(\\Cake\\Datasource\\EntityInterface \$entity, array \$options = [])"; + $annotations[] = "@method iterable<$entityPath>|\Cake\Datasource\ResultSetInterface<$entityPath>|false saveMany(iterable<\\Cake\\Datasource\\EntityInterface> \$entities, array \$options = [])"; + $annotations[] = "@method iterable<$entityPath>|\Cake\Datasource\ResultSetInterface<$entityPath> saveManyOrFail(iterable<\\Cake\\Datasource\\EntityInterface> \$entities, array \$options = [])"; + $annotations[] = "@method iterable<$entityPath>|\Cake\Datasource\ResultSetInterface<$entityPath>|false deleteMany(iterable<\\Cake\\Datasource\\EntityInterface> \$entities, array \$options = [])"; + $annotations[] = "@method iterable<$entityPath>|\Cake\Datasource\ResultSetInterface<$entityPath> deleteManyOrFail(iterable<\\Cake\\Datasource\\EntityInterface> \$entities, array \$options = [])"; // phpcs:enable foreach ($behaviors as $behavior => $behaviorData) { $className = App::className($behavior, 'Model/Behavior', 'Behavior'); diff --git a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesProductsTable.php b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesProductsTable.php index b843791b..59d7745e 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesProductsTable.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesProductsTable.php @@ -15,18 +15,18 @@ * @property \Bake\Test\App\Model\Table\ProductsTable&\Cake\ORM\Association\BelongsTo $Products * * @method \Bake\Test\App\Model\Entity\CategoriesProduct newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\CategoriesProduct newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\CategoriesProduct> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\CategoriesProduct get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\CategoriesProduct findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\CategoriesProduct patchEntity(\Bake\Test\App\Model\Entity\CategoriesProduct $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\CategoriesProduct> patchEntities(iterable<\Bake\Test\App\Model\Entity\CategoriesProduct> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\CategoriesProduct|false save(\Bake\Test\App\Model\Entity\CategoriesProduct $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\CategoriesProduct saveOrFail(\Bake\Test\App\Model\Entity\CategoriesProduct $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct>|false saveMany(iterable<\Bake\Test\App\Model\Entity\CategoriesProduct> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\CategoriesProduct> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\CategoriesProduct> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\CategoriesProduct> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\CategoriesProduct newEntity(array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\CategoriesProduct> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\CategoriesProduct get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\CategoriesProduct findOrCreate($search, ?callable $callback = null, array $options = []) + * @method \Bake\Test\App\Model\Entity\CategoriesProduct patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\CategoriesProduct> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\CategoriesProduct|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\CategoriesProduct saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) */ class CategoriesProductsTable extends Table { diff --git a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTable.php b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTable.php index 9d38fcbc..db027264 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTable.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTable.php @@ -14,18 +14,18 @@ * @property \Bake\Test\App\Model\Table\ProductsTable&\Cake\ORM\Association\BelongsToMany $Products * * @method \Bake\Test\App\Model\Entity\Category newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\Category newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\Category> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\Category get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\Category findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\Category patchEntity(\Bake\Test\App\Model\Entity\Category $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\Category> patchEntities(iterable<\Bake\Test\App\Model\Entity\Category> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\Category|false save(\Bake\Test\App\Model\Entity\Category $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\Category saveOrFail(\Bake\Test\App\Model\Entity\Category $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false saveMany(iterable<\Bake\Test\App\Model\Entity\Category> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\Category> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\Category> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\Category> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\Category newEntity(array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\Category> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\Category get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\Category findOrCreate($search, ?callable $callback = null, array $options = []) + * @method \Bake\Test\App\Model\Entity\Category patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\Category> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\Category|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\Category saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTableSigned.php b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTableSigned.php index 9d38fcbc..f36b5a2f 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTableSigned.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTableSigned.php @@ -14,18 +14,18 @@ * @property \Bake\Test\App\Model\Table\ProductsTable&\Cake\ORM\Association\BelongsToMany $Products * * @method \Bake\Test\App\Model\Entity\Category newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\Category newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\Category> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\Category newEntity(array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\Category> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\Category get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\Category findOrCreate($search, ?callable $callback = null, array $options = []) * @method \Bake\Test\App\Model\Entity\Category patchEntity(\Bake\Test\App\Model\Entity\Category $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\Category> patchEntities(iterable<\Bake\Test\App\Model\Entity\Category> $entities, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\Category> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\Category|false save(\Bake\Test\App\Model\Entity\Category $entity, array $options = []) * @method \Bake\Test\App\Model\Entity\Category saveOrFail(\Bake\Test\App\Model\Entity\Category $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false saveMany(iterable<\Bake\Test\App\Model\Entity\Category> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\Category> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\Category> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\Category> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTable.php b/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTable.php index a8c2bba0..55b7ebfe 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTable.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTable.php @@ -12,18 +12,18 @@ * OldProducts Model * * @method \Bake\Test\App\Model\Entity\OldProduct newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\OldProduct newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\OldProduct> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\OldProduct get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\OldProduct findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\OldProduct patchEntity(\Bake\Test\App\Model\Entity\OldProduct $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\OldProduct> patchEntities(iterable<\Bake\Test\App\Model\Entity\OldProduct> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\OldProduct|false save(\Bake\Test\App\Model\Entity\OldProduct $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\OldProduct saveOrFail(\Bake\Test\App\Model\Entity\OldProduct $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false saveMany(iterable<\Bake\Test\App\Model\Entity\OldProduct> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\OldProduct> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\OldProduct> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\OldProduct> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct newEntity(array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\OldProduct> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\OldProduct findOrCreate($search, ?callable $callback = null, array $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\OldProduct> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTableSigned.php b/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTableSigned.php index a8c2bba0..8bb5866f 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTableSigned.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTableSigned.php @@ -12,18 +12,18 @@ * OldProducts Model * * @method \Bake\Test\App\Model\Entity\OldProduct newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\OldProduct newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\OldProduct> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct newEntity(array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\OldProduct> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\OldProduct get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\OldProduct findOrCreate($search, ?callable $callback = null, array $options = []) * @method \Bake\Test\App\Model\Entity\OldProduct patchEntity(\Bake\Test\App\Model\Entity\OldProduct $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\OldProduct> patchEntities(iterable<\Bake\Test\App\Model\Entity\OldProduct> $entities, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\OldProduct> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\OldProduct|false save(\Bake\Test\App\Model\Entity\OldProduct $entity, array $options = []) * @method \Bake\Test\App\Model\Entity\OldProduct saveOrFail(\Bake\Test\App\Model\Entity\OldProduct $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false saveMany(iterable<\Bake\Test\App\Model\Entity\OldProduct> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\OldProduct> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\OldProduct> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\OldProduct> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTable.php b/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTable.php index d2559393..7681227e 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTable.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTable.php @@ -14,18 +14,18 @@ * @property \Bake\Test\App\Model\Table\ProductsTable&\Cake\ORM\Association\BelongsTo $Products * * @method \Bake\Test\App\Model\Entity\ProductVersion newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\ProductVersion newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\ProductVersion> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion newEntity(array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\ProductVersion> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\ProductVersion get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\ProductVersion findOrCreate($search, ?callable $callback = null, array $options = []) * @method \Bake\Test\App\Model\Entity\ProductVersion patchEntity(\Bake\Test\App\Model\Entity\ProductVersion $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\ProductVersion> patchEntities(iterable<\Bake\Test\App\Model\Entity\ProductVersion> $entities, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\ProductVersion> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\ProductVersion|false save(\Bake\Test\App\Model\Entity\ProductVersion $entity, array $options = []) * @method \Bake\Test\App\Model\Entity\ProductVersion saveOrFail(\Bake\Test\App\Model\Entity\ProductVersion $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false saveMany(iterable<\Bake\Test\App\Model\Entity\ProductVersion> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\ProductVersion> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\ProductVersion> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\ProductVersion> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) */ class ProductVersionsTable extends Table { diff --git a/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTableSigned.php b/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTableSigned.php index a5b4e05f..34946633 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTableSigned.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTableSigned.php @@ -14,18 +14,18 @@ * @property \Bake\Test\App\Model\Table\ProductsTable&\Cake\ORM\Association\BelongsTo $Products * * @method \Bake\Test\App\Model\Entity\ProductVersion newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\ProductVersion newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\ProductVersion> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\ProductVersion get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\ProductVersion findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\ProductVersion patchEntity(\Bake\Test\App\Model\Entity\ProductVersion $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\ProductVersion> patchEntities(iterable<\Bake\Test\App\Model\Entity\ProductVersion> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\ProductVersion|false save(\Bake\Test\App\Model\Entity\ProductVersion $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\ProductVersion saveOrFail(\Bake\Test\App\Model\Entity\ProductVersion $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false saveMany(iterable<\Bake\Test\App\Model\Entity\ProductVersion> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\ProductVersion> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\ProductVersion> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\ProductVersion> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion newEntity(array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\ProductVersion> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\ProductVersion findOrCreate($search, ?callable $callback = null, array $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\ProductVersion> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) */ class ProductVersionsTable extends Table { diff --git a/tests/comparisons/Model/testBakeTableConfig.php b/tests/comparisons/Model/testBakeTableConfig.php index 9fe63ef7..4de1e3dc 100644 --- a/tests/comparisons/Model/testBakeTableConfig.php +++ b/tests/comparisons/Model/testBakeTableConfig.php @@ -17,18 +17,18 @@ * @property \Bake\Test\App\Model\Table\TodoLabelsTable&\Cake\ORM\Association\BelongsToMany $TodoLabels * * @method \Bake\Test\App\Model\Entity\Item newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\Item newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\Item> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\Item get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\Item findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\Item patchEntity(\Bake\Test\App\Model\Entity\Item $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\Item> patchEntities(iterable<\Bake\Test\App\Model\Entity\Item> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\Item|false save(\Bake\Test\App\Model\Entity\Item $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\Item saveOrFail(\Bake\Test\App\Model\Entity\Item $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item>|false saveMany(iterable<\Bake\Test\App\Model\Entity\Item> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\Item> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\Item> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\Item> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\Item newEntity(array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\Item> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\Item get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\Item findOrCreate($search, ?callable $callback = null, array $options = []) + * @method \Bake\Test\App\Model\Entity\Item patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\Item> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\Item|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\Item saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeTableNullableForeignKey.php b/tests/comparisons/Model/testBakeTableNullableForeignKey.php index 37a62a9c..011f86e9 100644 --- a/tests/comparisons/Model/testBakeTableNullableForeignKey.php +++ b/tests/comparisons/Model/testBakeTableNullableForeignKey.php @@ -12,18 +12,18 @@ * TestBakeArticles Model * * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle patchEntity(\Bake\Test\App\Model\Entity\TestBakeArticle $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle|false save(\Bake\Test\App\Model\Entity\TestBakeArticle $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle saveOrFail(\Bake\Test\App\Model\Entity\TestBakeArticle $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false saveMany(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEntity(array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle findOrCreate($search, ?callable $callback = null, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeTableRules.php b/tests/comparisons/Model/testBakeTableRules.php index 42732cdb..a407af6d 100644 --- a/tests/comparisons/Model/testBakeTableRules.php +++ b/tests/comparisons/Model/testBakeTableRules.php @@ -12,18 +12,18 @@ * UniqueFields Model * * @method \Bake\Test\App\Model\Entity\UniqueField newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\UniqueField newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\UniqueField> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\UniqueField get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\UniqueField findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\UniqueField patchEntity(\Bake\Test\App\Model\Entity\UniqueField $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\UniqueField> patchEntities(iterable<\Bake\Test\App\Model\Entity\UniqueField> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\UniqueField|false save(\Bake\Test\App\Model\Entity\UniqueField $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\UniqueField saveOrFail(\Bake\Test\App\Model\Entity\UniqueField $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField>|false saveMany(iterable<\Bake\Test\App\Model\Entity\UniqueField> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\UniqueField> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\UniqueField> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\UniqueField> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\UniqueField newEntity(array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\UniqueField> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\UniqueField get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\UniqueField findOrCreate($search, ?callable $callback = null, array $options = []) + * @method \Bake\Test\App\Model\Entity\UniqueField patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\UniqueField> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\UniqueField|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\UniqueField saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) */ class UniqueFieldsTable extends Table { diff --git a/tests/comparisons/Model/testBakeTableValidation.php b/tests/comparisons/Model/testBakeTableValidation.php index 37a62a9c..011f86e9 100644 --- a/tests/comparisons/Model/testBakeTableValidation.php +++ b/tests/comparisons/Model/testBakeTableValidation.php @@ -12,18 +12,18 @@ * TestBakeArticles Model * * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle patchEntity(\Bake\Test\App\Model\Entity\TestBakeArticle $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle|false save(\Bake\Test\App\Model\Entity\TestBakeArticle $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle saveOrFail(\Bake\Test\App\Model\Entity\TestBakeArticle $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false saveMany(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEntity(array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle findOrCreate($search, ?callable $callback = null, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeTableWithCounterCache.php b/tests/comparisons/Model/testBakeTableWithCounterCache.php index 044d0ad2..4c8fe5f0 100644 --- a/tests/comparisons/Model/testBakeTableWithCounterCache.php +++ b/tests/comparisons/Model/testBakeTableWithCounterCache.php @@ -14,18 +14,18 @@ * @property \Bake\Test\App\Model\Table\TodoItemsTable&\Cake\ORM\Association\BelongsTo $TodoItems * * @method \Bake\Test\App\Model\Entity\TodoTask newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\TodoTask newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TodoTask> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoTask get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\TodoTask findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoTask patchEntity(\Bake\Test\App\Model\Entity\TodoTask $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TodoTask> patchEntities(iterable<\Bake\Test\App\Model\Entity\TodoTask> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoTask|false save(\Bake\Test\App\Model\Entity\TodoTask $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoTask saveOrFail(\Bake\Test\App\Model\Entity\TodoTask $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask>|false saveMany(iterable<\Bake\Test\App\Model\Entity\TodoTask> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\TodoTask> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\TodoTask> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\TodoTask> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoTask newEntity(array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\TodoTask> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoTask get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\TodoTask findOrCreate($search, ?callable $callback = null, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoTask patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\TodoTask> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoTask|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoTask saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior * @mixin \Cake\ORM\Behavior\CounterCacheBehavior diff --git a/tests/comparisons/Model/testBakeTableWithEnum.php b/tests/comparisons/Model/testBakeTableWithEnum.php index 08d83a22..6a41c7f3 100644 --- a/tests/comparisons/Model/testBakeTableWithEnum.php +++ b/tests/comparisons/Model/testBakeTableWithEnum.php @@ -12,18 +12,18 @@ * TestBakeArticles Model * * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEntity(array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\TestBakeArticle get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\TestBakeArticle findOrCreate($search, ?callable $callback = null, array $options = []) * @method \Bake\Test\App\Model\Entity\TestBakeArticle patchEntity(\Bake\Test\App\Model\Entity\TestBakeArticle $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\TestBakeArticle|false save(\Bake\Test\App\Model\Entity\TestBakeArticle $entity, array $options = []) * @method \Bake\Test\App\Model\Entity\TestBakeArticle saveOrFail(\Bake\Test\App\Model\Entity\TestBakeArticle $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false saveMany(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\TestBakeArticle> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeTableWithPlugin.php b/tests/comparisons/Model/testBakeTableWithPlugin.php index 38daf4d0..d83f7eff 100644 --- a/tests/comparisons/Model/testBakeTableWithPlugin.php +++ b/tests/comparisons/Model/testBakeTableWithPlugin.php @@ -15,18 +15,18 @@ * @property \BakeTest\Model\Table\TodoItemsTable&\Cake\ORM\Association\HasMany $TodoItems * * @method \BakeTest\Model\Entity\User newEmptyEntity() - * @method \BakeTest\Model\Entity\User newEntity(array $data, array $options = []) - * @method array<\BakeTest\Model\Entity\User> newEntities(array $data, array $options = []) - * @method \BakeTest\Model\Entity\User get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \BakeTest\Model\Entity\User findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \BakeTest\Model\Entity\User patchEntity(\BakeTest\Model\Entity\User $entity, array $data, array $options = []) - * @method array<\BakeTest\Model\Entity\User> patchEntities(iterable<\BakeTest\Model\Entity\User> $entities, array $data, array $options = []) - * @method \BakeTest\Model\Entity\User|false save(\BakeTest\Model\Entity\User $entity, array $options = []) - * @method \BakeTest\Model\Entity\User saveOrFail(\BakeTest\Model\Entity\User $entity, array $options = []) - * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User>|false saveMany(iterable<\BakeTest\Model\Entity\User> $entities, array $options = []) - * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User> saveManyOrFail(iterable<\BakeTest\Model\Entity\User> $entities, array $options = []) - * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User>|false deleteMany(iterable<\BakeTest\Model\Entity\User> $entities, array $options = []) - * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User> deleteManyOrFail(iterable<\BakeTest\Model\Entity\User> $entities, array $options = []) + * @method \BakeTest\Model\Entity\User newEntity(array $data, array $options = []) + * @method array<\BakeTest\Model\Entity\User> newEntities(array $data, array $options = []) + * @method \BakeTest\Model\Entity\User get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \BakeTest\Model\Entity\User findOrCreate($search, ?callable $callback = null, array $options = []) + * @method \BakeTest\Model\Entity\User patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) + * @method array<\BakeTest\Model\Entity\User> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) + * @method \BakeTest\Model\Entity\User|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method \BakeTest\Model\Entity\User saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeUpdateTable.php b/tests/comparisons/Model/testBakeUpdateTable.php index 4b0ea044..9528b210 100644 --- a/tests/comparisons/Model/testBakeUpdateTable.php +++ b/tests/comparisons/Model/testBakeUpdateTable.php @@ -19,18 +19,18 @@ * @property \Bake\Test\App\Model\Table\TodoLabelsTable&\Cake\ORM\Association\BelongsToMany $TodoLabels * * @method \Bake\Test\App\Model\Entity\TodoItem newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\TodoItem newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TodoItem> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\TodoItem findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem patchEntity(\Bake\Test\App\Model\Entity\TodoItem $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TodoItem> patchEntities(iterable<\Bake\Test\App\Model\Entity\TodoItem> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem|false save(\Bake\Test\App\Model\Entity\TodoItem $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem saveOrFail(\Bake\Test\App\Model\Entity\TodoItem $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false saveMany(iterable<\Bake\Test\App\Model\Entity\TodoItem> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\TodoItem> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\TodoItem> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\TodoItem> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem newEntity(array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\TodoItem> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\TodoItem findOrCreate($search, ?callable $callback = null, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\TodoItem> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeUpdateTableNoFile.php b/tests/comparisons/Model/testBakeUpdateTableNoFile.php index b6ea78a7..5a0951f9 100644 --- a/tests/comparisons/Model/testBakeUpdateTableNoFile.php +++ b/tests/comparisons/Model/testBakeUpdateTableNoFile.php @@ -17,18 +17,18 @@ * @property \Bake\Test\App\Model\Table\TodoLabelsTable&\Cake\ORM\Association\BelongsToMany $TodoLabels * * @method \Bake\Test\App\Model\Entity\TodoItem newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\TodoItem newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TodoItem> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\TodoItem findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem patchEntity(\Bake\Test\App\Model\Entity\TodoItem $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TodoItem> patchEntities(iterable<\Bake\Test\App\Model\Entity\TodoItem> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem|false save(\Bake\Test\App\Model\Entity\TodoItem $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem saveOrFail(\Bake\Test\App\Model\Entity\TodoItem $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false saveMany(iterable<\Bake\Test\App\Model\Entity\TodoItem> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\TodoItem> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\TodoItem> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\TodoItem> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem newEntity(array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\TodoItem> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\TodoItem findOrCreate($search, ?callable $callback = null, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\TodoItem> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeWithRulesUnique.php b/tests/comparisons/Model/testBakeWithRulesUnique.php index d2287d27..e71c87d1 100644 --- a/tests/comparisons/Model/testBakeWithRulesUnique.php +++ b/tests/comparisons/Model/testBakeWithRulesUnique.php @@ -15,18 +15,18 @@ * @property \Bake\Test\App\Model\Table\TodoItemsTable&\Cake\ORM\Association\HasMany $TodoItems * * @method \Bake\Test\App\Model\Entity\User newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\User newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\User> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\User get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\User findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\User patchEntity(\Bake\Test\App\Model\Entity\User $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\User> patchEntities(iterable<\Bake\Test\App\Model\Entity\User> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\User|false save(\Bake\Test\App\Model\Entity\User $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\User saveOrFail(\Bake\Test\App\Model\Entity\User $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User>|false saveMany(iterable<\Bake\Test\App\Model\Entity\User> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\User> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\User> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\User> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\User newEntity(array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\User> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\User get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\User findOrCreate($search, ?callable $callback = null, array $options = []) + * @method \Bake\Test\App\Model\Entity\User patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\User> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\User|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\User saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/test_app/App/Model/Table/ParseTestTable.php b/tests/test_app/App/Model/Table/ParseTestTable.php index 75e108d7..99dd0f48 100644 --- a/tests/test_app/App/Model/Table/ParseTestTable.php +++ b/tests/test_app/App/Model/Table/ParseTestTable.php @@ -12,18 +12,18 @@ * ParseTestTable Model * * @method \Bake\Test\App\Model\Entity\ParseTestTable newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\ParseTestTable newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\ParseTestTable> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\ParseTestTable newEntity(array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\ParseTestTable> newEntities(array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\ParseTestTable get($primaryKey, array $options = []) * @method \Bake\Test\App\Model\Entity\ParseTestTable findOrCreate($search, ?callable $callback = null, array $options = []) * @method \Bake\Test\App\Model\Entity\ParseTestTable patchEntity(\Bake\Test\App\Model\Entity\ParseTestTable $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\ParseTestTable> patchEntities(iterable<\Bake\Test\App\Model\Entity\ParseTestTable> $entities, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\ParseTestTable> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) * @method \Bake\Test\App\Model\Entity\ParseTestTable|false save(\Bake\Test\App\Model\Entity\ParseTestTable $entity, array $options = []) * @method \Bake\Test\App\Model\Entity\ParseTestTable saveOrFail(\Bake\Test\App\Model\Entity\ParseTestTable $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable>|false saveMany(iterable<\Bake\Test\App\Model\Entity\ParseTestTable> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable> saveManyOrFail(iterable<\Bake\Test\App\Model\Entity\ParseTestTable> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable>|false deleteMany(iterable<\Bake\Test\App\Model\Entity\ParseTestTable> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable> deleteManyOrFail(iterable<\Bake\Test\App\Model\Entity\ParseTestTable> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) */ class ParseTestTable extends Table { From 97d286c77d363bb63ee8b0091a7ff0746547a0a2 Mon Sep 17 00:00:00 2001 From: Adam Halfar Date: Mon, 14 Oct 2024 16:57:01 +0200 Subject: [PATCH 3/4] Change finder to be strictly string, fix missed types in tests --- src/View/Helper/DocBlockHelper.php | 2 +- ...keAssociationDetectionCategoriesProductsTable.php | 2 +- .../testBakeAssociationDetectionCategoriesTable.php | 2 +- ...BakeAssociationDetectionCategoriesTableSigned.php | 12 ++++++------ .../testBakeAssociationDetectionOldProductsTable.php | 2 +- ...akeAssociationDetectionOldProductsTableSigned.php | 12 ++++++------ ...tBakeAssociationDetectionProductVersionsTable.php | 12 ++++++------ ...ssociationDetectionProductVersionsTableSigned.php | 2 +- tests/comparisons/Model/testBakeTableConfig.php | 2 +- .../Model/testBakeTableNullableForeignKey.php | 2 +- tests/comparisons/Model/testBakeTableRules.php | 2 +- tests/comparisons/Model/testBakeTableValidation.php | 2 +- .../Model/testBakeTableWithCounterCache.php | 2 +- tests/comparisons/Model/testBakeTableWithEnum.php | 12 ++++++------ tests/comparisons/Model/testBakeTableWithPlugin.php | 2 +- tests/comparisons/Model/testBakeUpdateTable.php | 2 +- .../comparisons/Model/testBakeUpdateTableNoFile.php | 2 +- tests/comparisons/Model/testBakeWithRulesUnique.php | 2 +- tests/test_app/App/Model/Table/ParseTestTable.php | 12 ++++++------ 19 files changed, 44 insertions(+), 44 deletions(-) diff --git a/src/View/Helper/DocBlockHelper.php b/src/View/Helper/DocBlockHelper.php index 0ad1b492..a2b04c01 100644 --- a/src/View/Helper/DocBlockHelper.php +++ b/src/View/Helper/DocBlockHelper.php @@ -297,7 +297,7 @@ public function buildTableAnnotations( $annotations[] = "@method $entityPath newEmptyEntity()"; $annotations[] = "@method $entityPath newEntity(array \$data, array \$options = [])"; $annotations[] = "@method array<$entityPath> newEntities(array \$data, array \$options = [])"; - $annotations[] = "@method $entityPath get(mixed \$primaryKey, array|string \$finder = 'all', \\Psr\\SimpleCache\\CacheInterface|string|null \$cache = null, \Closure|string|null \$cacheKey = null, mixed ...\$args)"; + $annotations[] = "@method $entityPath get(mixed \$primaryKey, string \$finder = 'all', \\Psr\\SimpleCache\\CacheInterface|string|null \$cache = null, \Closure|string|null \$cacheKey = null, mixed ...\$args)"; $annotations[] = "@method $entityPath findOrCreate(\$search, ?callable \$callback = null, array \$options = [])"; $annotations[] = "@method $entityPath patchEntity(\\Cake\\Datasource\\EntityInterface \$entity, array \$data, array \$options = [])"; $annotations[] = "@method array<$entityPath> patchEntities(iterable<\\Cake\\Datasource\\EntityInterface> \$entities, array \$data, array \$options = [])"; diff --git a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesProductsTable.php b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesProductsTable.php index 59d7745e..84532f67 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesProductsTable.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesProductsTable.php @@ -17,7 +17,7 @@ * @method \Bake\Test\App\Model\Entity\CategoriesProduct newEmptyEntity() * @method \Bake\Test\App\Model\Entity\CategoriesProduct newEntity(array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\CategoriesProduct> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\CategoriesProduct get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\CategoriesProduct get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\CategoriesProduct findOrCreate($search, ?callable $callback = null, array $options = []) * @method \Bake\Test\App\Model\Entity\CategoriesProduct patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\CategoriesProduct> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) diff --git a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTable.php b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTable.php index db027264..4e1c35f6 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTable.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTable.php @@ -16,7 +16,7 @@ * @method \Bake\Test\App\Model\Entity\Category newEmptyEntity() * @method \Bake\Test\App\Model\Entity\Category newEntity(array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\Category> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\Category get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\Category get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\Category findOrCreate($search, ?callable $callback = null, array $options = []) * @method \Bake\Test\App\Model\Entity\Category patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\Category> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) diff --git a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTableSigned.php b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTableSigned.php index f36b5a2f..4e1c35f6 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTableSigned.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTableSigned.php @@ -16,12 +16,12 @@ * @method \Bake\Test\App\Model\Entity\Category newEmptyEntity() * @method \Bake\Test\App\Model\Entity\Category newEntity(array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\Category> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\Category get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\Category findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\Category patchEntity(\Bake\Test\App\Model\Entity\Category $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\Category> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\Category|false save(\Bake\Test\App\Model\Entity\Category $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\Category saveOrFail(\Bake\Test\App\Model\Entity\Category $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\Category get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\Category findOrCreate($search, ?callable $callback = null, array $options = []) + * @method \Bake\Test\App\Model\Entity\Category patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\Category> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\Category|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\Category saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) diff --git a/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTable.php b/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTable.php index 55b7ebfe..3421c697 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTable.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTable.php @@ -14,7 +14,7 @@ * @method \Bake\Test\App\Model\Entity\OldProduct newEmptyEntity() * @method \Bake\Test\App\Model\Entity\OldProduct newEntity(array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\OldProduct> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\OldProduct get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\OldProduct get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\OldProduct findOrCreate($search, ?callable $callback = null, array $options = []) * @method \Bake\Test\App\Model\Entity\OldProduct patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\OldProduct> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) diff --git a/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTableSigned.php b/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTableSigned.php index 8bb5866f..3421c697 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTableSigned.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTableSigned.php @@ -14,12 +14,12 @@ * @method \Bake\Test\App\Model\Entity\OldProduct newEmptyEntity() * @method \Bake\Test\App\Model\Entity\OldProduct newEntity(array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\OldProduct> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\OldProduct get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\OldProduct findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\OldProduct patchEntity(\Bake\Test\App\Model\Entity\OldProduct $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\OldProduct> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\OldProduct|false save(\Bake\Test\App\Model\Entity\OldProduct $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\OldProduct saveOrFail(\Bake\Test\App\Model\Entity\OldProduct $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\OldProduct findOrCreate($search, ?callable $callback = null, array $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\OldProduct> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) diff --git a/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTable.php b/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTable.php index 7681227e..c4a57fba 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTable.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTable.php @@ -16,12 +16,12 @@ * @method \Bake\Test\App\Model\Entity\ProductVersion newEmptyEntity() * @method \Bake\Test\App\Model\Entity\ProductVersion newEntity(array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\ProductVersion> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\ProductVersion get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\ProductVersion findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\ProductVersion patchEntity(\Bake\Test\App\Model\Entity\ProductVersion $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\ProductVersion> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\ProductVersion|false save(\Bake\Test\App\Model\Entity\ProductVersion $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\ProductVersion saveOrFail(\Bake\Test\App\Model\Entity\ProductVersion $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\ProductVersion findOrCreate($search, ?callable $callback = null, array $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\ProductVersion> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) diff --git a/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTableSigned.php b/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTableSigned.php index 34946633..ebb9974c 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTableSigned.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTableSigned.php @@ -16,7 +16,7 @@ * @method \Bake\Test\App\Model\Entity\ProductVersion newEmptyEntity() * @method \Bake\Test\App\Model\Entity\ProductVersion newEntity(array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\ProductVersion> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\ProductVersion get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\ProductVersion get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\ProductVersion findOrCreate($search, ?callable $callback = null, array $options = []) * @method \Bake\Test\App\Model\Entity\ProductVersion patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\ProductVersion> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) diff --git a/tests/comparisons/Model/testBakeTableConfig.php b/tests/comparisons/Model/testBakeTableConfig.php index 4de1e3dc..d231ea75 100644 --- a/tests/comparisons/Model/testBakeTableConfig.php +++ b/tests/comparisons/Model/testBakeTableConfig.php @@ -19,7 +19,7 @@ * @method \Bake\Test\App\Model\Entity\Item newEmptyEntity() * @method \Bake\Test\App\Model\Entity\Item newEntity(array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\Item> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\Item get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\Item get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\Item findOrCreate($search, ?callable $callback = null, array $options = []) * @method \Bake\Test\App\Model\Entity\Item patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\Item> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) diff --git a/tests/comparisons/Model/testBakeTableNullableForeignKey.php b/tests/comparisons/Model/testBakeTableNullableForeignKey.php index 011f86e9..af18a3f4 100644 --- a/tests/comparisons/Model/testBakeTableNullableForeignKey.php +++ b/tests/comparisons/Model/testBakeTableNullableForeignKey.php @@ -14,7 +14,7 @@ * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEmptyEntity() * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEntity(array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\TestBakeArticle findOrCreate($search, ?callable $callback = null, array $options = []) * @method \Bake\Test\App\Model\Entity\TestBakeArticle patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) diff --git a/tests/comparisons/Model/testBakeTableRules.php b/tests/comparisons/Model/testBakeTableRules.php index a407af6d..bb460635 100644 --- a/tests/comparisons/Model/testBakeTableRules.php +++ b/tests/comparisons/Model/testBakeTableRules.php @@ -14,7 +14,7 @@ * @method \Bake\Test\App\Model\Entity\UniqueField newEmptyEntity() * @method \Bake\Test\App\Model\Entity\UniqueField newEntity(array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\UniqueField> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\UniqueField get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\UniqueField get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\UniqueField findOrCreate($search, ?callable $callback = null, array $options = []) * @method \Bake\Test\App\Model\Entity\UniqueField patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\UniqueField> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) diff --git a/tests/comparisons/Model/testBakeTableValidation.php b/tests/comparisons/Model/testBakeTableValidation.php index 011f86e9..af18a3f4 100644 --- a/tests/comparisons/Model/testBakeTableValidation.php +++ b/tests/comparisons/Model/testBakeTableValidation.php @@ -14,7 +14,7 @@ * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEmptyEntity() * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEntity(array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\TestBakeArticle findOrCreate($search, ?callable $callback = null, array $options = []) * @method \Bake\Test\App\Model\Entity\TestBakeArticle patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) diff --git a/tests/comparisons/Model/testBakeTableWithCounterCache.php b/tests/comparisons/Model/testBakeTableWithCounterCache.php index 4c8fe5f0..74fd0934 100644 --- a/tests/comparisons/Model/testBakeTableWithCounterCache.php +++ b/tests/comparisons/Model/testBakeTableWithCounterCache.php @@ -16,7 +16,7 @@ * @method \Bake\Test\App\Model\Entity\TodoTask newEmptyEntity() * @method \Bake\Test\App\Model\Entity\TodoTask newEntity(array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\TodoTask> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoTask get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\TodoTask get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\TodoTask findOrCreate($search, ?callable $callback = null, array $options = []) * @method \Bake\Test\App\Model\Entity\TodoTask patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\TodoTask> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) diff --git a/tests/comparisons/Model/testBakeTableWithEnum.php b/tests/comparisons/Model/testBakeTableWithEnum.php index 6a41c7f3..8518e9cb 100644 --- a/tests/comparisons/Model/testBakeTableWithEnum.php +++ b/tests/comparisons/Model/testBakeTableWithEnum.php @@ -14,12 +14,12 @@ * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEmptyEntity() * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEntity(array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle patchEntity(\Bake\Test\App\Model\Entity\TestBakeArticle $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle|false save(\Bake\Test\App\Model\Entity\TestBakeArticle $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle saveOrFail(\Bake\Test\App\Model\Entity\TestBakeArticle $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle findOrCreate($search, ?callable $callback = null, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) diff --git a/tests/comparisons/Model/testBakeTableWithPlugin.php b/tests/comparisons/Model/testBakeTableWithPlugin.php index d83f7eff..23b8a41e 100644 --- a/tests/comparisons/Model/testBakeTableWithPlugin.php +++ b/tests/comparisons/Model/testBakeTableWithPlugin.php @@ -17,7 +17,7 @@ * @method \BakeTest\Model\Entity\User newEmptyEntity() * @method \BakeTest\Model\Entity\User newEntity(array $data, array $options = []) * @method array<\BakeTest\Model\Entity\User> newEntities(array $data, array $options = []) - * @method \BakeTest\Model\Entity\User get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \BakeTest\Model\Entity\User get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \BakeTest\Model\Entity\User findOrCreate($search, ?callable $callback = null, array $options = []) * @method \BakeTest\Model\Entity\User patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) * @method array<\BakeTest\Model\Entity\User> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) diff --git a/tests/comparisons/Model/testBakeUpdateTable.php b/tests/comparisons/Model/testBakeUpdateTable.php index 9528b210..597ff859 100644 --- a/tests/comparisons/Model/testBakeUpdateTable.php +++ b/tests/comparisons/Model/testBakeUpdateTable.php @@ -21,7 +21,7 @@ * @method \Bake\Test\App\Model\Entity\TodoItem newEmptyEntity() * @method \Bake\Test\App\Model\Entity\TodoItem newEntity(array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\TodoItem> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\TodoItem get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\TodoItem findOrCreate($search, ?callable $callback = null, array $options = []) * @method \Bake\Test\App\Model\Entity\TodoItem patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\TodoItem> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) diff --git a/tests/comparisons/Model/testBakeUpdateTableNoFile.php b/tests/comparisons/Model/testBakeUpdateTableNoFile.php index 5a0951f9..76980539 100644 --- a/tests/comparisons/Model/testBakeUpdateTableNoFile.php +++ b/tests/comparisons/Model/testBakeUpdateTableNoFile.php @@ -19,7 +19,7 @@ * @method \Bake\Test\App\Model\Entity\TodoItem newEmptyEntity() * @method \Bake\Test\App\Model\Entity\TodoItem newEntity(array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\TodoItem> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\TodoItem get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\TodoItem findOrCreate($search, ?callable $callback = null, array $options = []) * @method \Bake\Test\App\Model\Entity\TodoItem patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\TodoItem> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) diff --git a/tests/comparisons/Model/testBakeWithRulesUnique.php b/tests/comparisons/Model/testBakeWithRulesUnique.php index e71c87d1..e381bd88 100644 --- a/tests/comparisons/Model/testBakeWithRulesUnique.php +++ b/tests/comparisons/Model/testBakeWithRulesUnique.php @@ -17,7 +17,7 @@ * @method \Bake\Test\App\Model\Entity\User newEmptyEntity() * @method \Bake\Test\App\Model\Entity\User newEntity(array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\User> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\User get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) + * @method \Bake\Test\App\Model\Entity\User get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) * @method \Bake\Test\App\Model\Entity\User findOrCreate($search, ?callable $callback = null, array $options = []) * @method \Bake\Test\App\Model\Entity\User patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\User> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) diff --git a/tests/test_app/App/Model/Table/ParseTestTable.php b/tests/test_app/App/Model/Table/ParseTestTable.php index 99dd0f48..e8ddaef3 100644 --- a/tests/test_app/App/Model/Table/ParseTestTable.php +++ b/tests/test_app/App/Model/Table/ParseTestTable.php @@ -14,12 +14,12 @@ * @method \Bake\Test\App\Model\Entity\ParseTestTable newEmptyEntity() * @method \Bake\Test\App\Model\Entity\ParseTestTable newEntity(array $data, array $options = []) * @method array<\Bake\Test\App\Model\Entity\ParseTestTable> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\ParseTestTable get($primaryKey, array $options = []) - * @method \Bake\Test\App\Model\Entity\ParseTestTable findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\ParseTestTable patchEntity(\Bake\Test\App\Model\Entity\ParseTestTable $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\ParseTestTable> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\ParseTestTable|false save(\Bake\Test\App\Model\Entity\ParseTestTable $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\ParseTestTable saveOrFail(\Bake\Test\App\Model\Entity\ParseTestTable $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\ParseTestTable get($primaryKey, array $options = []) + * @method \Bake\Test\App\Model\Entity\ParseTestTable findOrCreate($search, ?callable $callback = null, array $options = []) + * @method \Bake\Test\App\Model\Entity\ParseTestTable patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) + * @method array<\Bake\Test\App\Model\Entity\ParseTestTable> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\ParseTestTable|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) + * @method \Bake\Test\App\Model\Entity\ParseTestTable saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) From d3f26c8f923244bc38eb6028c0121a0a523d8577 Mon Sep 17 00:00:00 2001 From: Adam Halfar Date: Wed, 16 Oct 2024 14:21:04 +0200 Subject: [PATCH 4/4] Change syntax array<> to type[], revert iterable specification in input fields --- src/View/Helper/DocBlockHelper.php | 22 ++++++++--------- ...iationDetectionCategoriesProductsTable.php | 22 ++++++++--------- ...akeAssociationDetectionCategoriesTable.php | 22 ++++++++--------- ...ociationDetectionCategoriesTableSigned.php | 22 ++++++++--------- ...keAssociationDetectionOldProductsTable.php | 22 ++++++++--------- ...ciationDetectionOldProductsTableSigned.php | 22 ++++++++--------- ...sociationDetectionProductVersionsTable.php | 22 ++++++++--------- ...ionDetectionProductVersionsTableSigned.php | 22 ++++++++--------- .../comparisons/Model/testBakeTableConfig.php | 22 ++++++++--------- .../Model/testBakeTableNullableForeignKey.php | 22 ++++++++--------- .../comparisons/Model/testBakeTableRules.php | 22 ++++++++--------- .../Model/testBakeTableValidation.php | 22 ++++++++--------- .../Model/testBakeTableWithCounterCache.php | 22 ++++++++--------- .../Model/testBakeTableWithEnum.php | 22 ++++++++--------- .../Model/testBakeTableWithPlugin.php | 22 ++++++++--------- .../comparisons/Model/testBakeUpdateTable.php | 22 ++++++++--------- .../Model/testBakeUpdateTableNoFile.php | 22 ++++++++--------- .../Model/testBakeWithRulesUnique.php | 22 ++++++++--------- .../App/Model/Table/ParseTestTable.php | 24 +++++++++---------- 19 files changed, 210 insertions(+), 210 deletions(-) diff --git a/src/View/Helper/DocBlockHelper.php b/src/View/Helper/DocBlockHelper.php index a2b04c01..f2fb52f1 100644 --- a/src/View/Helper/DocBlockHelper.php +++ b/src/View/Helper/DocBlockHelper.php @@ -295,18 +295,18 @@ public function buildTableAnnotations( // phpcs:disable $annotations[] = "@method $entityPath newEmptyEntity()"; - $annotations[] = "@method $entityPath newEntity(array \$data, array \$options = [])"; - $annotations[] = "@method array<$entityPath> newEntities(array \$data, array \$options = [])"; + $annotations[] = "@method $entityPath newEntity(mixed[] \$data, mixed[] \$options = [])"; + $annotations[] = "@method array<$entityPath> newEntities(mixed[] \$data, mixed[] \$options = [])"; $annotations[] = "@method $entityPath get(mixed \$primaryKey, string \$finder = 'all', \\Psr\\SimpleCache\\CacheInterface|string|null \$cache = null, \Closure|string|null \$cacheKey = null, mixed ...\$args)"; - $annotations[] = "@method $entityPath findOrCreate(\$search, ?callable \$callback = null, array \$options = [])"; - $annotations[] = "@method $entityPath patchEntity(\\Cake\\Datasource\\EntityInterface \$entity, array \$data, array \$options = [])"; - $annotations[] = "@method array<$entityPath> patchEntities(iterable<\\Cake\\Datasource\\EntityInterface> \$entities, array \$data, array \$options = [])"; - $annotations[] = "@method $entityPath|false save(\\Cake\\Datasource\\EntityInterface \$entity, array \$options = [])"; - $annotations[] = "@method $entityPath saveOrFail(\\Cake\\Datasource\\EntityInterface \$entity, array \$options = [])"; - $annotations[] = "@method iterable<$entityPath>|\Cake\Datasource\ResultSetInterface<$entityPath>|false saveMany(iterable<\\Cake\\Datasource\\EntityInterface> \$entities, array \$options = [])"; - $annotations[] = "@method iterable<$entityPath>|\Cake\Datasource\ResultSetInterface<$entityPath> saveManyOrFail(iterable<\\Cake\\Datasource\\EntityInterface> \$entities, array \$options = [])"; - $annotations[] = "@method iterable<$entityPath>|\Cake\Datasource\ResultSetInterface<$entityPath>|false deleteMany(iterable<\\Cake\\Datasource\\EntityInterface> \$entities, array \$options = [])"; - $annotations[] = "@method iterable<$entityPath>|\Cake\Datasource\ResultSetInterface<$entityPath> deleteManyOrFail(iterable<\\Cake\\Datasource\\EntityInterface> \$entities, array \$options = [])"; + $annotations[] = "@method $entityPath findOrCreate(\$search, ?callable \$callback = null, mixed[] \$options = [])"; + $annotations[] = "@method $entityPath patchEntity(\\Cake\\Datasource\\EntityInterface \$entity, mixed[] \$data, mixed[] \$options = [])"; + $annotations[] = "@method array<$entityPath> patchEntities(iterable \$entities, mixed[] \$data, mixed[] \$options = [])"; + $annotations[] = "@method $entityPath|false save(\\Cake\\Datasource\\EntityInterface \$entity, mixed[] \$options = [])"; + $annotations[] = "@method $entityPath saveOrFail(\\Cake\\Datasource\\EntityInterface \$entity, mixed[] \$options = [])"; + $annotations[] = "@method iterable<$entityPath>|\Cake\Datasource\ResultSetInterface<$entityPath>|false saveMany(iterable \$entities, mixed[] \$options = [])"; + $annotations[] = "@method iterable<$entityPath>|\Cake\Datasource\ResultSetInterface<$entityPath> saveManyOrFail(iterable \$entities, mixed[] \$options = [])"; + $annotations[] = "@method iterable<$entityPath>|\Cake\Datasource\ResultSetInterface<$entityPath>|false deleteMany(iterable \$entities, mixed[] \$options = [])"; + $annotations[] = "@method iterable<$entityPath>|\Cake\Datasource\ResultSetInterface<$entityPath> deleteManyOrFail(iterable \$entities, mixed[] \$options = [])"; // phpcs:enable foreach ($behaviors as $behavior => $behaviorData) { $className = App::className($behavior, 'Model/Behavior', 'Behavior'); diff --git a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesProductsTable.php b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesProductsTable.php index 84532f67..f0600da1 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesProductsTable.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesProductsTable.php @@ -15,18 +15,18 @@ * @property \Bake\Test\App\Model\Table\ProductsTable&\Cake\ORM\Association\BelongsTo $Products * * @method \Bake\Test\App\Model\Entity\CategoriesProduct newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\CategoriesProduct newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\CategoriesProduct> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\CategoriesProduct newEntity(mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\CategoriesProduct> newEntities(mixed[] $data, mixed[] $options = []) * @method \Bake\Test\App\Model\Entity\CategoriesProduct get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\CategoriesProduct findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\CategoriesProduct patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\CategoriesProduct> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\CategoriesProduct|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\CategoriesProduct saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\CategoriesProduct findOrCreate($search, ?callable $callback = null, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\CategoriesProduct patchEntity(\Cake\Datasource\EntityInterface $entity, mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\CategoriesProduct> patchEntities(iterable $entities, mixed[] $data, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\CategoriesProduct|false save(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\CategoriesProduct saveOrFail(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct>|false saveMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct> saveManyOrFail(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct>|false deleteMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\CategoriesProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\CategoriesProduct> deleteManyOrFail(iterable $entities, mixed[] $options = []) */ class CategoriesProductsTable extends Table { diff --git a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTable.php b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTable.php index 4e1c35f6..cc3b0af9 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTable.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTable.php @@ -14,18 +14,18 @@ * @property \Bake\Test\App\Model\Table\ProductsTable&\Cake\ORM\Association\BelongsToMany $Products * * @method \Bake\Test\App\Model\Entity\Category newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\Category newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\Category> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\Category newEntity(mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\Category> newEntities(mixed[] $data, mixed[] $options = []) * @method \Bake\Test\App\Model\Entity\Category get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\Category findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\Category patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\Category> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\Category|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\Category saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\Category findOrCreate($search, ?callable $callback = null, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\Category patchEntity(\Cake\Datasource\EntityInterface $entity, mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\Category> patchEntities(iterable $entities, mixed[] $data, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\Category|false save(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\Category saveOrFail(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false saveMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> saveManyOrFail(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false deleteMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> deleteManyOrFail(iterable $entities, mixed[] $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTableSigned.php b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTableSigned.php index 4e1c35f6..cc3b0af9 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTableSigned.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionCategoriesTableSigned.php @@ -14,18 +14,18 @@ * @property \Bake\Test\App\Model\Table\ProductsTable&\Cake\ORM\Association\BelongsToMany $Products * * @method \Bake\Test\App\Model\Entity\Category newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\Category newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\Category> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\Category newEntity(mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\Category> newEntities(mixed[] $data, mixed[] $options = []) * @method \Bake\Test\App\Model\Entity\Category get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\Category findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\Category patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\Category> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\Category|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\Category saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\Category findOrCreate($search, ?callable $callback = null, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\Category patchEntity(\Cake\Datasource\EntityInterface $entity, mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\Category> patchEntities(iterable $entities, mixed[] $data, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\Category|false save(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\Category saveOrFail(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false saveMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> saveManyOrFail(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category>|false deleteMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Category>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Category> deleteManyOrFail(iterable $entities, mixed[] $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTable.php b/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTable.php index 3421c697..db894cf0 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTable.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTable.php @@ -12,18 +12,18 @@ * OldProducts Model * * @method \Bake\Test\App\Model\Entity\OldProduct newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\OldProduct newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\OldProduct> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct newEntity(mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\OldProduct> newEntities(mixed[] $data, mixed[] $options = []) * @method \Bake\Test\App\Model\Entity\OldProduct get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\OldProduct findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\OldProduct patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\OldProduct> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\OldProduct|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\OldProduct saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct findOrCreate($search, ?callable $callback = null, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct patchEntity(\Cake\Datasource\EntityInterface $entity, mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\OldProduct> patchEntities(iterable $entities, mixed[] $data, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct|false save(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct saveOrFail(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false saveMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> saveManyOrFail(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false deleteMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> deleteManyOrFail(iterable $entities, mixed[] $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTableSigned.php b/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTableSigned.php index 3421c697..db894cf0 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTableSigned.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionOldProductsTableSigned.php @@ -12,18 +12,18 @@ * OldProducts Model * * @method \Bake\Test\App\Model\Entity\OldProduct newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\OldProduct newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\OldProduct> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct newEntity(mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\OldProduct> newEntities(mixed[] $data, mixed[] $options = []) * @method \Bake\Test\App\Model\Entity\OldProduct get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\OldProduct findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\OldProduct patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\OldProduct> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\OldProduct|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\OldProduct saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct findOrCreate($search, ?callable $callback = null, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct patchEntity(\Cake\Datasource\EntityInterface $entity, mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\OldProduct> patchEntities(iterable $entities, mixed[] $data, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct|false save(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\OldProduct saveOrFail(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false saveMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> saveManyOrFail(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct>|false deleteMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\OldProduct>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\OldProduct> deleteManyOrFail(iterable $entities, mixed[] $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTable.php b/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTable.php index c4a57fba..3c062287 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTable.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTable.php @@ -14,18 +14,18 @@ * @property \Bake\Test\App\Model\Table\ProductsTable&\Cake\ORM\Association\BelongsTo $Products * * @method \Bake\Test\App\Model\Entity\ProductVersion newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\ProductVersion newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\ProductVersion> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion newEntity(mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\ProductVersion> newEntities(mixed[] $data, mixed[] $options = []) * @method \Bake\Test\App\Model\Entity\ProductVersion get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\ProductVersion findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\ProductVersion patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\ProductVersion> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\ProductVersion|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\ProductVersion saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion findOrCreate($search, ?callable $callback = null, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion patchEntity(\Cake\Datasource\EntityInterface $entity, mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\ProductVersion> patchEntities(iterable $entities, mixed[] $data, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion|false save(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion saveOrFail(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false saveMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> saveManyOrFail(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false deleteMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> deleteManyOrFail(iterable $entities, mixed[] $options = []) */ class ProductVersionsTable extends Table { diff --git a/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTableSigned.php b/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTableSigned.php index ebb9974c..68afce5f 100644 --- a/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTableSigned.php +++ b/tests/comparisons/Model/testBakeAssociationDetectionProductVersionsTableSigned.php @@ -14,18 +14,18 @@ * @property \Bake\Test\App\Model\Table\ProductsTable&\Cake\ORM\Association\BelongsTo $Products * * @method \Bake\Test\App\Model\Entity\ProductVersion newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\ProductVersion newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\ProductVersion> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion newEntity(mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\ProductVersion> newEntities(mixed[] $data, mixed[] $options = []) * @method \Bake\Test\App\Model\Entity\ProductVersion get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\ProductVersion findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\ProductVersion patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\ProductVersion> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\ProductVersion|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\ProductVersion saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion findOrCreate($search, ?callable $callback = null, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion patchEntity(\Cake\Datasource\EntityInterface $entity, mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\ProductVersion> patchEntities(iterable $entities, mixed[] $data, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion|false save(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\ProductVersion saveOrFail(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false saveMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> saveManyOrFail(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion>|false deleteMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ProductVersion>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ProductVersion> deleteManyOrFail(iterable $entities, mixed[] $options = []) */ class ProductVersionsTable extends Table { diff --git a/tests/comparisons/Model/testBakeTableConfig.php b/tests/comparisons/Model/testBakeTableConfig.php index d231ea75..2afef837 100644 --- a/tests/comparisons/Model/testBakeTableConfig.php +++ b/tests/comparisons/Model/testBakeTableConfig.php @@ -17,18 +17,18 @@ * @property \Bake\Test\App\Model\Table\TodoLabelsTable&\Cake\ORM\Association\BelongsToMany $TodoLabels * * @method \Bake\Test\App\Model\Entity\Item newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\Item newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\Item> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\Item newEntity(mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\Item> newEntities(mixed[] $data, mixed[] $options = []) * @method \Bake\Test\App\Model\Entity\Item get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\Item findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\Item patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\Item> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\Item|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\Item saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\Item findOrCreate($search, ?callable $callback = null, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\Item patchEntity(\Cake\Datasource\EntityInterface $entity, mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\Item> patchEntities(iterable $entities, mixed[] $data, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\Item|false save(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\Item saveOrFail(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item>|false saveMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item> saveManyOrFail(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item>|false deleteMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\Item>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\Item> deleteManyOrFail(iterable $entities, mixed[] $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeTableNullableForeignKey.php b/tests/comparisons/Model/testBakeTableNullableForeignKey.php index af18a3f4..9ae7fd0a 100644 --- a/tests/comparisons/Model/testBakeTableNullableForeignKey.php +++ b/tests/comparisons/Model/testBakeTableNullableForeignKey.php @@ -12,18 +12,18 @@ * TestBakeArticles Model * * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEntity(mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> newEntities(mixed[] $data, mixed[] $options = []) * @method \Bake\Test\App\Model\Entity\TestBakeArticle get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle findOrCreate($search, ?callable $callback = null, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle patchEntity(\Cake\Datasource\EntityInterface $entity, mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable $entities, mixed[] $data, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle|false save(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle saveOrFail(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false saveMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> saveManyOrFail(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false deleteMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> deleteManyOrFail(iterable $entities, mixed[] $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeTableRules.php b/tests/comparisons/Model/testBakeTableRules.php index bb460635..3503f07e 100644 --- a/tests/comparisons/Model/testBakeTableRules.php +++ b/tests/comparisons/Model/testBakeTableRules.php @@ -12,18 +12,18 @@ * UniqueFields Model * * @method \Bake\Test\App\Model\Entity\UniqueField newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\UniqueField newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\UniqueField> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\UniqueField newEntity(mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\UniqueField> newEntities(mixed[] $data, mixed[] $options = []) * @method \Bake\Test\App\Model\Entity\UniqueField get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\UniqueField findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\UniqueField patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\UniqueField> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\UniqueField|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\UniqueField saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\UniqueField findOrCreate($search, ?callable $callback = null, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\UniqueField patchEntity(\Cake\Datasource\EntityInterface $entity, mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\UniqueField> patchEntities(iterable $entities, mixed[] $data, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\UniqueField|false save(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\UniqueField saveOrFail(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField>|false saveMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField> saveManyOrFail(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField>|false deleteMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\UniqueField>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\UniqueField> deleteManyOrFail(iterable $entities, mixed[] $options = []) */ class UniqueFieldsTable extends Table { diff --git a/tests/comparisons/Model/testBakeTableValidation.php b/tests/comparisons/Model/testBakeTableValidation.php index af18a3f4..9ae7fd0a 100644 --- a/tests/comparisons/Model/testBakeTableValidation.php +++ b/tests/comparisons/Model/testBakeTableValidation.php @@ -12,18 +12,18 @@ * TestBakeArticles Model * * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEntity(mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> newEntities(mixed[] $data, mixed[] $options = []) * @method \Bake\Test\App\Model\Entity\TestBakeArticle get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle findOrCreate($search, ?callable $callback = null, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle patchEntity(\Cake\Datasource\EntityInterface $entity, mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable $entities, mixed[] $data, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle|false save(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle saveOrFail(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false saveMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> saveManyOrFail(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false deleteMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> deleteManyOrFail(iterable $entities, mixed[] $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeTableWithCounterCache.php b/tests/comparisons/Model/testBakeTableWithCounterCache.php index 74fd0934..de30b019 100644 --- a/tests/comparisons/Model/testBakeTableWithCounterCache.php +++ b/tests/comparisons/Model/testBakeTableWithCounterCache.php @@ -14,18 +14,18 @@ * @property \Bake\Test\App\Model\Table\TodoItemsTable&\Cake\ORM\Association\BelongsTo $TodoItems * * @method \Bake\Test\App\Model\Entity\TodoTask newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\TodoTask newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TodoTask> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoTask newEntity(mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\TodoTask> newEntities(mixed[] $data, mixed[] $options = []) * @method \Bake\Test\App\Model\Entity\TodoTask get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\TodoTask findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoTask patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TodoTask> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoTask|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoTask saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoTask findOrCreate($search, ?callable $callback = null, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\TodoTask patchEntity(\Cake\Datasource\EntityInterface $entity, mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\TodoTask> patchEntities(iterable $entities, mixed[] $data, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\TodoTask|false save(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\TodoTask saveOrFail(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask>|false saveMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask> saveManyOrFail(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask>|false deleteMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoTask>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoTask> deleteManyOrFail(iterable $entities, mixed[] $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior * @mixin \Cake\ORM\Behavior\CounterCacheBehavior diff --git a/tests/comparisons/Model/testBakeTableWithEnum.php b/tests/comparisons/Model/testBakeTableWithEnum.php index 8518e9cb..d28560df 100644 --- a/tests/comparisons/Model/testBakeTableWithEnum.php +++ b/tests/comparisons/Model/testBakeTableWithEnum.php @@ -12,18 +12,18 @@ * TestBakeArticles Model * * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle newEntity(mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> newEntities(mixed[] $data, mixed[] $options = []) * @method \Bake\Test\App\Model\Entity\TestBakeArticle get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\TestBakeArticle saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle findOrCreate($search, ?callable $callback = null, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle patchEntity(\Cake\Datasource\EntityInterface $entity, mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\TestBakeArticle> patchEntities(iterable $entities, mixed[] $data, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle|false save(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\TestBakeArticle saveOrFail(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false saveMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> saveManyOrFail(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle>|false deleteMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TestBakeArticle>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TestBakeArticle> deleteManyOrFail(iterable $entities, mixed[] $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeTableWithPlugin.php b/tests/comparisons/Model/testBakeTableWithPlugin.php index 23b8a41e..5d4dea5a 100644 --- a/tests/comparisons/Model/testBakeTableWithPlugin.php +++ b/tests/comparisons/Model/testBakeTableWithPlugin.php @@ -15,18 +15,18 @@ * @property \BakeTest\Model\Table\TodoItemsTable&\Cake\ORM\Association\HasMany $TodoItems * * @method \BakeTest\Model\Entity\User newEmptyEntity() - * @method \BakeTest\Model\Entity\User newEntity(array $data, array $options = []) - * @method array<\BakeTest\Model\Entity\User> newEntities(array $data, array $options = []) + * @method \BakeTest\Model\Entity\User newEntity(mixed[] $data, mixed[] $options = []) + * @method array<\BakeTest\Model\Entity\User> newEntities(mixed[] $data, mixed[] $options = []) * @method \BakeTest\Model\Entity\User get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \BakeTest\Model\Entity\User findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \BakeTest\Model\Entity\User patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\BakeTest\Model\Entity\User> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \BakeTest\Model\Entity\User|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \BakeTest\Model\Entity\User saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method \BakeTest\Model\Entity\User findOrCreate($search, ?callable $callback = null, mixed[] $options = []) + * @method \BakeTest\Model\Entity\User patchEntity(\Cake\Datasource\EntityInterface $entity, mixed[] $data, mixed[] $options = []) + * @method array<\BakeTest\Model\Entity\User> patchEntities(iterable $entities, mixed[] $data, mixed[] $options = []) + * @method \BakeTest\Model\Entity\User|false save(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method \BakeTest\Model\Entity\User saveOrFail(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User>|false saveMany(iterable $entities, mixed[] $options = []) + * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User> saveManyOrFail(iterable $entities, mixed[] $options = []) + * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User>|false deleteMany(iterable $entities, mixed[] $options = []) + * @method iterable<\BakeTest\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\BakeTest\Model\Entity\User> deleteManyOrFail(iterable $entities, mixed[] $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeUpdateTable.php b/tests/comparisons/Model/testBakeUpdateTable.php index 597ff859..d8c1ef20 100644 --- a/tests/comparisons/Model/testBakeUpdateTable.php +++ b/tests/comparisons/Model/testBakeUpdateTable.php @@ -19,18 +19,18 @@ * @property \Bake\Test\App\Model\Table\TodoLabelsTable&\Cake\ORM\Association\BelongsToMany $TodoLabels * * @method \Bake\Test\App\Model\Entity\TodoItem newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\TodoItem newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TodoItem> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem newEntity(mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\TodoItem> newEntities(mixed[] $data, mixed[] $options = []) * @method \Bake\Test\App\Model\Entity\TodoItem get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\TodoItem findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TodoItem> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem findOrCreate($search, ?callable $callback = null, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem patchEntity(\Cake\Datasource\EntityInterface $entity, mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\TodoItem> patchEntities(iterable $entities, mixed[] $data, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem|false save(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem saveOrFail(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false saveMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> saveManyOrFail(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false deleteMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> deleteManyOrFail(iterable $entities, mixed[] $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeUpdateTableNoFile.php b/tests/comparisons/Model/testBakeUpdateTableNoFile.php index 76980539..c8af1649 100644 --- a/tests/comparisons/Model/testBakeUpdateTableNoFile.php +++ b/tests/comparisons/Model/testBakeUpdateTableNoFile.php @@ -17,18 +17,18 @@ * @property \Bake\Test\App\Model\Table\TodoLabelsTable&\Cake\ORM\Association\BelongsToMany $TodoLabels * * @method \Bake\Test\App\Model\Entity\TodoItem newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\TodoItem newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TodoItem> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem newEntity(mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\TodoItem> newEntities(mixed[] $data, mixed[] $options = []) * @method \Bake\Test\App\Model\Entity\TodoItem get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\TodoItem findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\TodoItem> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\TodoItem saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem findOrCreate($search, ?callable $callback = null, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem patchEntity(\Cake\Datasource\EntityInterface $entity, mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\TodoItem> patchEntities(iterable $entities, mixed[] $data, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem|false save(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\TodoItem saveOrFail(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false saveMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> saveManyOrFail(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem>|false deleteMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\TodoItem>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\TodoItem> deleteManyOrFail(iterable $entities, mixed[] $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/comparisons/Model/testBakeWithRulesUnique.php b/tests/comparisons/Model/testBakeWithRulesUnique.php index e381bd88..bf2bbcdb 100644 --- a/tests/comparisons/Model/testBakeWithRulesUnique.php +++ b/tests/comparisons/Model/testBakeWithRulesUnique.php @@ -15,18 +15,18 @@ * @property \Bake\Test\App\Model\Table\TodoItemsTable&\Cake\ORM\Association\HasMany $TodoItems * * @method \Bake\Test\App\Model\Entity\User newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\User newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\User> newEntities(array $data, array $options = []) + * @method \Bake\Test\App\Model\Entity\User newEntity(mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\User> newEntities(mixed[] $data, mixed[] $options = []) * @method \Bake\Test\App\Model\Entity\User get(mixed $primaryKey, string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args) - * @method \Bake\Test\App\Model\Entity\User findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\User patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\User> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\User|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\User saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\User findOrCreate($search, ?callable $callback = null, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\User patchEntity(\Cake\Datasource\EntityInterface $entity, mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\User> patchEntities(iterable $entities, mixed[] $data, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\User|false save(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\User saveOrFail(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User>|false saveMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User> saveManyOrFail(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User>|false deleteMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\User>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\User> deleteManyOrFail(iterable $entities, mixed[] $options = []) * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ diff --git a/tests/test_app/App/Model/Table/ParseTestTable.php b/tests/test_app/App/Model/Table/ParseTestTable.php index e8ddaef3..641c78e5 100644 --- a/tests/test_app/App/Model/Table/ParseTestTable.php +++ b/tests/test_app/App/Model/Table/ParseTestTable.php @@ -12,18 +12,18 @@ * ParseTestTable Model * * @method \Bake\Test\App\Model\Entity\ParseTestTable newEmptyEntity() - * @method \Bake\Test\App\Model\Entity\ParseTestTable newEntity(array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\ParseTestTable> newEntities(array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\ParseTestTable get($primaryKey, array $options = []) - * @method \Bake\Test\App\Model\Entity\ParseTestTable findOrCreate($search, ?callable $callback = null, array $options = []) - * @method \Bake\Test\App\Model\Entity\ParseTestTable patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = []) - * @method array<\Bake\Test\App\Model\Entity\ParseTestTable> patchEntities(iterable<\Cake\Datasource\EntityInterface> $entities, array $data, array $options = []) - * @method \Bake\Test\App\Model\Entity\ParseTestTable|false save(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method \Bake\Test\App\Model\Entity\ParseTestTable saveOrFail(\Cake\Datasource\EntityInterface $entity, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable>|false saveMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable> saveManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable>|false deleteMany(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) - * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable> deleteManyOrFail(iterable<\Cake\Datasource\EntityInterface> $entities, array $options = []) + * @method \Bake\Test\App\Model\Entity\ParseTestTable newEntity(mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\ParseTestTable> newEntities(mixed[] $data, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\ParseTestTable get($primaryKey, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\ParseTestTable findOrCreate($search, ?callable $callback = null, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\ParseTestTable patchEntity(\Cake\Datasource\EntityInterface $entity, mixed[] $data, mixed[] $options = []) + * @method array<\Bake\Test\App\Model\Entity\ParseTestTable> patchEntities(iterable $entities, mixed[] $data, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\ParseTestTable|false save(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method \Bake\Test\App\Model\Entity\ParseTestTable saveOrFail(\Cake\Datasource\EntityInterface $entity, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable>|false saveMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable> saveManyOrFail(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable>|false deleteMany(iterable $entities, mixed[] $options = []) + * @method iterable<\Bake\Test\App\Model\Entity\ParseTestTable>|\Cake\Datasource\ResultSetInterface<\Bake\Test\App\Model\Entity\ParseTestTable> deleteManyOrFail(iterable $entities, mixed[] $options = []) */ class ParseTestTable extends Table {