-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bc: fix Proxy sca problem in ModelFactory
- Loading branch information
Showing
2 changed files
with
7 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,12 @@ | |
* @method static Proxy[]|TModel[] createMany(int $number, array|callable $attributes = []) | ||
* @phpstan-method static list<Proxy<TModel>> createMany(int $number, array|callable $attributes = []) | ||
* | ||
* @phpstan-method FactoryCollection<Proxy<TModel>> sequence(iterable<array<string, mixed>>|callable(): iterable<array<string, mixed>> $sequence) | ||
* @phpstan-method FactoryCollection<Proxy<TModel>> many(int $min, int|null $max = null) | ||
* | ||
* @phpstan-method static list<Proxy<TModel>> createSequence(iterable<array<string, mixed>>|callable(): iterable<array<string, mixed>> $sequence) | ||
* @phpstan-method static list<Proxy<TModel>> createMany(int $min, int|null $max = null) | ||
* | ||
* @author Kevin Bond <[email protected]> | ||
* | ||
* @deprecated use PersistentProxyObjectFactory instead | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,7 @@ | |
|
||
use Zenstruck\Foundry\Exception\FoundryBootException; | ||
use Zenstruck\Foundry\Factory; | ||
use Zenstruck\Foundry\FactoryCollection; // keep me! | ||
use Zenstruck\Foundry\Proxy; | ||
use Zenstruck\Foundry\Persistence\Proxy; | ||
|
||
/** | ||
* @template TModel of object | ||
|
@@ -25,12 +24,6 @@ | |
* @method static Proxy[]|TModel[] createMany(int $number, array|callable $attributes = []) | ||
* @phpstan-method static list<Proxy<TModel>> createMany(int $number, array|callable $attributes = []) | ||
* | ||
* @phpstan-method FactoryCollection<Proxy<TModel>> sequence(iterable<array<string, mixed>>|callable(): iterable<array<string, mixed>> $sequence) | ||
* @phpstan-method FactoryCollection<Proxy<TModel>> many(int $min, int|null $max = null) | ||
* | ||
* @phpstan-method static list<Proxy<TModel>> createSequence(iterable<array<string, mixed>>|callable(): iterable<array<string, mixed>> $sequence) | ||
* @phpstan-method static list<Proxy<TModel>> createMany(int $min, int|null $max = null) | ||
* | ||
* @author Kevin Bond <[email protected]> | ||
*/ | ||
abstract class PersistentProxyObjectFactory extends PersistentObjectFactory | ||
|