Skip to content

Magento 2.4.4 - Static content deploy - Deprecated Error - null value #35293

@mkuzPL

Description

@mkuzPL

I've made fresh install of Magento 2.4.4
PHP version is 8.1.4

I've created two child themes (one of luma & one of blank)
I've installed PL language pack using command:
composer require mageplaza/magento-2-polish-language-pack:dev-master mageplaza/module-smtp

Next step (after installing language pack) should be:
php bin/magento setup:static-content:deploy pl_PL -f

Following command causes an error:
Error happened during deploy process: Deprecated Functionality: pathinfo(): Passing null to parameter #1 ($path) of type string is deprecated in /workspaces/magento-demo/vendor/magento/framework/View/Asset/PreProcessor/FileNameResolver.php on line 44
image

Line 44 of FileNameResolver.php looks like this:
image

I've found somethinf like this: [PHP 8.1: Passing null to non-nullable internal function parameters is deprecated]

How can I fix this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: ready for confirmationReported on 2.4.4Indicates original Magento version for the Issue report.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions