Vincent Langlet

Results 103 issues of Vincent Langlet

Hi @ondrejmirtes, I just got an issue with my tests saying that an offset does not exist in an array. I tried to add a `assertArrayHasKey` check, without success. I...

Related to https://github.com/getsentry/sentry-symfony/issues/46#issuecomment-780003387 > it should be possible to change the way the client is built during the container compilation so that if the DSN is null then we skip...

Type: Improvement
Status: Confirmed
Status: Backlog

When using `isset()` we're checking that - The property/variable/... is defined - The value is not null When the value is always defined, it could be clearer to write `$foo...

I have the following method ``` public function foo(Collection $collection) { $collection->add($this->bar); $collection->add($this->bar); if ($collection instanceof BOOM) { $collection->add($this->some) } } ``` which reports an error because I didn't use...

I saw the following issues about groups: https://github.com/thephpleague/oauth2-google/issues/86 When connecting to google with oauth, I added the scope ``` https://www.googleapis.com/auth/admin.directory.customer.readonly ``` Then I try to access to ``` 'https://admin.googleapis.com/admin/directory/v1/customers/my_customer' ```...

Reproducer for https://github.com/phpstan/phpstan/issues/7755 with a proposal of fix. Prior to this PR, only the stub was used if found. Now I try to merge both the `ResolvedPhpDocBlock` from the stub...

Ref https://github.com/psalm/psalm-plugin-symfony/pull/220#issuecomment-945447558 The following code ``` class AppKernel extends Kernel { use MicroKernelTrait; public function __construct() { parent::__construct('test', true); } } ``` is giving a `PropertyNotSetInConstructor` error. @enumag @seferov do...

Hi @seferov The following code ``` public function getConfigTreeBuilder(): TreeBuilder { $treeBuilder = new TreeBuilder('sonata_doctrine_orm_admin'); $rootNode = $treeBuilder->getRootNode(); \assert($rootNode instanceof ArrayNodeDefinition); $rootNode ->children() ->scalarNode('entity_manager')->defaultNull()->end() ->arrayNode('audit') // The error is here...

The containerInterface has the following doc ``` /** * Gets a service. * * @param string $id The service identifier * @param int $invalidBehavior The behavior when the service does...

The following code ``` use App\Entity\Foo; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\Exception\InvalidArgumentException; class MyConstraint extends Constraint { /** * @var Foo */ public $foo; /** * @var string */ public $message =...