You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So this accidentally becomes a backward incompatible change unfortunately.
Steps To Reproduce
laravel new bug-report --github="--public"
composer require squirephp/countries-en
This results in the error:
PHP Fatal error: Type of Squire\RepositoryServiceProvider::$singletons must not be defined (as in class Illuminate\Support\ServiceProvider) in /Users/manavo/Code/laravel-bug/bug-report/vendor/squirephp/repository/src/RepositoryServiceProvider.php on line 7
In RepositoryServiceProvider.php line 7:
Type of Squire\RepositoryServiceProvider::$singletons must not be defined (as in class Illuminate\Support\ServiceProvider)
The text was updated successfully, but these errors were encountered:
manavo
changed the title
Issue with declaring bindings and singletons
Issue with declaring bindings and singletons properties
Jul 26, 2024
Laravel Version
11.18.0
PHP Version
8.3.7
Database Driver & Version
No response
Description
The commit ed28a45 seems to be creating an issue.
When they are magic properties, there is some wiggle-room for how they get defined. For example, in SquirePHP it gets defined with the data-type of array: https://github.com/squirephp/repository/blob/3.x/src/RepositoryServiceProvider.php
So this accidentally becomes a backward incompatible change unfortunately.
Steps To Reproduce
laravel new bug-report --github="--public"
composer require squirephp/countries-en
This results in the error:
The text was updated successfully, but these errors were encountered: