refactor: Add platform
so phpstan with analyze code for our specifi…
#469
Annotations
10 errors and 2 warnings
PHPStan:
src/controllers/SettingsController.php#L997
Strict comparison using === between 'GenericContainer' and 'MetaScriptContainer' will always evaluate to false.
|
PHPStan:
src/controllers/SettingsController.php#L1018
If condition is always false.
|
PHPStan:
src/models/EditableTemplate.php#L29
Constant nystudio107\seomatic\models\EditableTemplate::TEMPLATE_TYPE overrides final constant nystudio107\seomatic\base\FrontendTemplateInterface::TEMPLATE_TYPE.
|
PHPStan:
src/models/FrontendTemplateContainer.php#L26
Constant nystudio107\seomatic\models\FrontendTemplateContainer::CONTAINER_TYPE overrides final constant nystudio107\seomatic\base\ContainerInterface::CONTAINER_TYPE.
|
PHPStan:
src/models/MetaJsonLd.php#L46
Constant nystudio107\seomatic\models\MetaJsonLd::ITEM_TYPE overrides final constant nystudio107\seomatic\base\MetaItemInterface::ITEM_TYPE.
|
PHPStan:
src/models/MetaJsonLdContainer.php#L33
Constant nystudio107\seomatic\models\MetaJsonLdContainer::CONTAINER_TYPE overrides final constant nystudio107\seomatic\base\ContainerInterface::CONTAINER_TYPE.
|
PHPStan:
src/models/MetaLink.php#L33
Constant nystudio107\seomatic\models\MetaLink::ITEM_TYPE overrides final constant nystudio107\seomatic\base\MetaItemInterface::ITEM_TYPE.
|
PHPStan:
src/models/MetaLinkContainer.php#L30
Constant nystudio107\seomatic\models\MetaLinkContainer::CONTAINER_TYPE overrides final constant nystudio107\seomatic\base\ContainerInterface::CONTAINER_TYPE.
|
PHPStan:
src/models/MetaScript.php#L31
Constant nystudio107\seomatic\models\MetaScript::ITEM_TYPE overrides final constant nystudio107\seomatic\base\MetaItemInterface::ITEM_TYPE.
|
PHPStan:
src/models/MetaScriptContainer.php#L32
Constant nystudio107\seomatic\models\MetaScriptContainer::CONTAINER_TYPE overrides final constant nystudio107\seomatic\base\ContainerInterface::CONTAINER_TYPE.
|
Coding Standards
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
PHPStan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|