Vincent Langlet

Results 395 comments of Vincent Langlet

The usecase is ``` $fieldDescription = $this->createMock(FieldDescriptionInterface::class); $fieldDescription->expects($this->once())->method('getAssociationMapping')->willReturn(['fieldName' => 'fooBar']); $fieldDescription->expects($this->once())->method('getParentAssociationMappings')->willReturn([]); $instance = new \stdClass(); $object = $this->getMockBuilder(\stdClass::class)->setMethods(['addFooBar'])->getMock(); $object->expects($this->once())->method('addFooBar')->with($instance); ObjectManipulator::addInstance($object, $instance, $fieldDescription); ``` Here, the method name `addFooBar` is dynamically...

The issue of @lugus and all the error I get is because we're adding methods to `\stdClass`. The purpose of mocking a stdClass and adding method is to avoid to...

If it's not possible, or easily possible, what's about delaying it to another major in order to release the support of league/flysystem-* packages to ^2.0 in https://github.com/1up-lab/OneupFlysystemBundle/pull/217

> > You need to implement it in https://github.com/sonata-project/sonata-doctrine-extensions/blob/2.x/src/Entity/BaseEntityManager.php > > `BaseEntityManager` or `BaseManager` I don't really get what is the difference between both? BaseManager is a base for both...

> I think I found at least another case on SonataMediaBundle where this could be useful. Can you explain what you have in mind ?

> Ok we have the first problem here, sonata-doctrine-extension requires php 8 > > https://github.com/sonata-project/sonata-doctrine-extensions/blob/2.x/composer.json > > But in my option we should release 4.0 with support for `7.4` what...

HI @azjezz, I think it could be useful to add some documentation about why using this library (or maybe I missed it). For instance, I saw a PR https://github.com/Roave/BackwardCompatibilityCheck/pull/306 removing...

> Prevent situation when comparison return can unexpected result. For example: > > ``` > php > $a = 0.15 + 0.15; > php > $b = 0.1 + 0.2;...

> As discussed with Frank, I'm working on a small lib implementing a stream wrapper for Flysystem. I hope to release a first version soon. With gaufrette being deprecated, having...