Deprecated: Implicitly marking parameter as nullable #82
-
Hi 👋 I'm using the maize/laravel-markable package in a Laravel project running on PHP 8.4, and I’m seeing the following deprecation warning during application boot (docker): Deprecated: Maize\Markable\Mark::has(): Implicitly marking parameter $value as nullable is deprecated, the explicit nullable type must be used instead in /vendor/maize-tech/laravel-markable/src/Mark.php on line 94 Cause In PHP 8.4, it is deprecated to have parameters implicitly treated as nullable. This method: public function has($value) …should explicitly declare the type if it accepts null: public function has(?$value) Suggested Fix Please update the method signature to explicitly mark the parameter as nullable to maintain compatibility with PHP 8.4 and suppress unnecessary log output. Thanks a lot for your work on this package! 🙌 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Fixed and released, thanks! |
Beta Was this translation helpful? Give feedback.
Fixed and released, thanks!