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

PHP Runtime Deprecation Notice - PHP 8.2 #407

Open
peterschoene opened this issue Oct 3, 2024 · 2 comments
Open

PHP Runtime Deprecation Notice - PHP 8.2 #407

peterschoene opened this issue Oct 3, 2024 · 2 comments

Comments

@peterschoene
Copy link

TYPO3 V 12.4.20
t3sbs/t3sbootstrap (v5.3.15)
PHP 8.2

When calling the scheduler I get

[CRITICAL] request="604d2908e4a66" component="TYPO3.CMS.Core.Error.DebugExceptionHandler": Core: Exception handler (WEB: BE): TYPO3\CMS\Core\Error\Exception, code #1476107295, file /var/www/html/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php, line 138: PHP Runtime Deprecation Notice: Creation of dynamic property T3SBS\T3sbootstrap\Command\CustomScss::$configurationManager is deprecated in /var/www/html/vendor/t3sbs/t3sbootstrap/Classes/Command/CustomScss.php line 35- Exception: PHP Runtime Deprecation Notice: Creation of dynamic property T3SBS\T3sbootstrap\Command\CustomScss::$configurationManager is deprecated in /var/www/html/vendor/t3sbs/t3sbootstrap/Classes/Command/CustomScss.php line 35, in file /var/www/html/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php:138 - {"mode":"WEB","application_mode":"BE","exception_class":"TYPO3\CMS\Core\Error\Exception","exception_code":1476107295,"file":"/var/www/html/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php","line":138,"message":"PHP Runtime Deprecation Notice: Creation of dynamic property T3SBS\T3sbootstrap\Command\CustomScss::$configurationManager is deprecated in /var/www/html/vendor/t3sbs/t3sbootstrap/Classes/Command/CustomScss.php line 35"

Can be fixed by using PHP 8.1 or replacing the lines 27-36 in t3sbs/t3sbootstrap/Classes/Command/CustomScss.php

public function initializeAction()
    {
        parent::initializeAction();
    }


    public function injectConfigurationManager(ConfigurationManagerInterface $configurationManager)
    {
        $this->configurationManager = $configurationManager;
    }

by

   /**
     * @var ConfigurationManagerInterface
     */
    protected ConfigurationManagerInterface $configurationManager;

    public function initializeAction()
    {
        parent::initializeAction();
    }

    public function injectConfigurationManager(ConfigurationManagerInterface $configurationManager)
    {
        $this->configurationManager = $configurationManager;
    }
@at-ac
Copy link

at-ac commented Oct 3, 2024

Hi, same here

TYPO3 12.4.20
t3sbootstrap 5.3.15
PHP 8.3.12

Solution from @peterschoene worked for me :)

@t3solution
Copy link
Owner

Should be fixed with v5.3.16!

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

3 participants