Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError @ CssColor::fromCss [v0.1.2] #1

Open
xerc opened this issue Jun 25, 2023 · 0 comments
Open

Uncaught TypeError @ CssColor::fromCss [v0.1.2] #1

xerc opened this issue Jun 25, 2023 · 0 comments

Comments

@xerc
Copy link

xerc commented Jun 25, 2023

$rgb = ColorFactory::newRgb('red');

Got error 'PHP message: PHP Fatal error: Uncaught TypeError: matthieumastadenis\couleur\CssColor::fromCss(): Argument #2 ($fallback) must be of type ?matthieumastadenis\couleur\CssColor, bool given, called in colors/vendor/matthieumastadenis/couleur/src/utils/css/utils.php on line 27 and defined in colors/vendor/matthieumastadenis/couleur/src/CssColor.php:519
Stack trace:
#0 colors/vendor/matthieumastadenis/couleur/src/utils/css/utils.php(27): matthieumastadenis\couleur\CssColor::fromCss()
#1 colors/vendor/matthieumastadenis/couleur/src/utils/utils.php(901): matthieumastadenis\couleur\utils\css\clean()
#2 colors/vendor/matthieumastadenis/couleur/src/ColorFactory.php(61): matthieumastadenis\couleur\utils\toColor()
#3 colors/vendor/matthieumastadenis/couleur/src/ColorFactory.php(436): matthieumast...'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant