Nicolas PHILIPPE

Results 321 comments of Nicolas PHILIPPE

Hi @Fabrn I don't fully understand what you're trying to achieve: without Doctrine, the objects which are created in a story are not persisted at all (moreover in a global...

> My goal was to store non-persistent Proxies into the Story states in order to retrieve them later in the code. whoops, you're right stories do keep their own states,...

Hi! I'm closing this, since this works in Foundry v2 and we won't support this in v1

Hi @jrushlow I spent a large part of the day yesterday figuring out why the deprecations were not bubbling in PHPUnit >= 10. There are two main problems: as you've...

Here is how you can trigger deprecation in a test: ```php public function testSomething() { $emitter = Event\Facade::emitter(); $emitter->testTriggeredDeprecation( $this->valueObjectForEvents(), 'message', 'file', 123, suppressed: false, ignoredByBaseline: false, ignoredByTest: false );...

It seems that PHPUnit will emit deprecations from dataproviders. But this will land in 11.2

I'm closing this, I did my best for PHPUnit >= 10 to display the maximum of deprecations, all the rest depends on symfony/phpunit

Hi Basically, what I'd do would be something like this: ```php abstract class LegacyObjectFactory extends ObjectFactory { public function __construct( private LegacyPersister $legacyPersister ){} public function initialize(): static { return...

Hi @sirpilan maybe you can change your listener and not override when a value already exists? :sweat_smile: I'm not sure what would be the benefits of a custom persister in...