Nicolas PHILIPPE

Results 82 issues of Nicolas PHILIPPE

see https://github.com/zenstruck/foundry/issues/899#issuecomment-2915561115 I'm intentionally not supporting all "fluent" syntax, because they are way to complex to handle with Rector ie: something like `proxy($object)->_save();` will be left untouched This is a...

follow up for https://github.com/zenstruck/foundry/pull/893 Here is a list of things that need to be done to remove usage of `ProxyHelper::generateLazyProxy()` - [x] ~"undeprecate" `auto_refresh_proxies` configuration~ - [x] ~add a method...

enhancement

relates to https://github.com/zenstruck/foundry/issues/899 I'll use this PR as a "meta" PR for all work around proxies in PHP 8.4 - this i why the branch is in `zenstruck/foundry` repo I...

This code should throw an exception: ```php SomeFactory::new()->createMany(); ``` it was [deprecated in Foundry 1.7](https://github.com/zenstruck/foundry/blob/1.x/src/Factory.php#L84), it is error prone (any state passed to `new()` will be ignored), and kinda hard...

something like this could be useful: ```php $users = UserFactory::new() ->sequence([['username' => 'foo', 'username' => 'bar']]) ->indexBy('username') ->create(); ``` and then, we can access users by their username: `$users['foo`]`, `$users['bar']`

enhancement
good first issue

We should add `#[Override]` attribute in the generated factories (and maybe stories?) as soon as PHP 8.3 is used

enhancement
good first issue

fixes https://github.com/zenstruck/foundry/issues/889 BTW, I've figured that the CI was not totally testing the migration stuff :grimacing: but now it is fixed! needs https://github.com/doctrine/migrations/pull/1528

I'm bringing back this `mapEach()` method. On the project I'm working on, we have tons of factories with "withers" which prevents to use sequences and fluent usage of the factories...

| Q | A | --------------------| --------------- | PHPUnit version | 12.2.2 | PHP version | 8.3.20 | Installation Method | Composer #### Summary PHPUnit warnings are always failing the...

type/enhancement
feature/test-runner
feature/configuration/xml
feature/configuration/cli