python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
PHPStan doesn't use custom entity repository
I am using PHPStan with its Doctrine extension.
I have a custom entity repository called App\Repository\Doctrine\UserRepository with the @extends doc block:
/**
* @extends \Doctrine\ORM\EntityReposit...
amacrobert
Votes: 0
Answers: 1
Make PHPStan understand Laravel Eloquent Builder query()
I am having a hard time making larastan / phpstan understand that query() should be based on Company model and not Eloquent\Model. What am I missing?
<?php
namespace App\Repositories;
use App\Mod...
Nicolas
Votes: 0
Answers: 1
Using Enum as string in PHP with PhpStan
I'm experimenting with PHP enums in a Symfony 6 application and I thought I found a very nice use case for those. Everything works, but phpstan keeps complaining about the type I return.
------ -----...
Julien B.
Votes: 0
Answers: 1
What is the return type of a method that returns Heredoc?
I have some PHP code that looks like this:
class MyClass
{
public static function classPhpdoc($paramA)
{
return <<<PHP
/** @template-extends \\$baseClass */
PHP;
}
}
It'...
Radu Murzea
Votes: 0
Answers: 1