Fix PHP stan issues

Created on 15 February 2024, about 1 year ago

PHP Stan report after Drupal CI integration:

------ ------------------------------------------------------------------------------
Line src/Form/AdminToolbarVersionSettingsForm.php
------ ------------------------------------------------------------------------------
79 Unsafe usage of new static().
💡 See:
https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static
------ ------------------------------------------------------------------------------

------ ----------------------------------------------------------------------
Line src/VersionInfoManager.php
------ ----------------------------------------------------------------------
91 \Drupal calls should be avoided in classes, use dependency injection
instead
------ ----------------------------------------------------------------------

[ERROR] Found 2 errors

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium kriboogh

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024