Skip to content

Conversation

@jtojnar
Copy link
Contributor

@jtojnar jtojnar commented Apr 2, 2023

Cannot call method toString() on PhpParser\Node\Name|null.

nikic/PHP-Parser@f4b835f

jtojnar added 2 commits April 2, 2023 20:17
Cannot call method toString() on PhpParser\Node\Name|null. nikic/PHP-Parser@f4b835f
Composer now requires plug-ins to be explicitly whitelisted before running them, see https://getcomposer.org/allow-plugins When that is not done, installation will fail with: Error: phpstan/extension-installer contains a Composer plugin which is blocked by your allow-plugins config. You may add it to the list if you consider it safe.
@jtojnar jtojnar changed the title Fix PHPStan error Fix CI Apr 2, 2023
@hrach
Copy link
Member

hrach commented Apr 3, 2023

Thanks for these fixes. I will make it pass or you can try, but no need to do so :)

 ------ ----------------------------------------------------------------- Line src/Types/RepositoryReturnTypeExtension.php ------ ----------------------------------------------------------------- 109 Strict comparison using === between class-string<Nextras\Orm\Repository\Repository> and 'Nextras\\Orm\\Repository\\IRepository' will always evaluate to false. ------ -----------------------------------------------------------------
@jtojnar
Copy link
Contributor Author

jtojnar commented Apr 3, 2023

I am not seeing the error from CI locally. I have attempted to fix it. Hopefully, once we get CI green, you will be more sure about the correctness of #28.

@hrach hrach merged commit 6b705bd into nextras:main Apr 4, 2023
@jtojnar jtojnar deleted the ci-fix branch April 4, 2023 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants