Codeception / Stub

Flexible Stub wrapper for PHPUnit's Mock Builder
MIT License
295 stars 17 forks source link

DEPRECATION: Creation of dynamic property XXX is deprecated /var/www/html/vendor/codeception/stub/src/Stub.php:545 #44

Closed dmamchyts closed 1 year ago

dmamchyts commented 1 year ago

Hi, thank you for your work. I got an some warnings:

Composer version: 2.5.8
PHP version: 8.2.8
PHP binary path: /usr/local/bin/php
OpenSSL version: OpenSSL 3.1.1 30 May 2023
cURL version: 8.1.2 libz 1.2.13 ssl OpenSSL/3.1.1
zip: extension present, unzip present, 7-Zip not available

/var/www/html $ ./vendor/bin/codecept run unit --env=test
Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (through xdebug.client_host/xdebug.client_port).
Codeception PHP Testing Framework v5.0.11 https://helpukrainewin.org

.....................................................................................................................................................................................................
..............................................................................................

2x DEPRECATION: Creation of dynamic property Mock_AdminAbTestRequest_0bde4e00::$parameterKey is deprecated /var/www/html/vendor/codeception/stub/src/Stub.php:545
DEPRECATION: Creation of dynamic property Mock_AbTestManager_5b44c6d7::$getById is deprecated /var/www/html/vendor/codeception/stub/src/Stub.php:545
DEPRECATION: Creation of dynamic property Mock_ConfigManager_c34d0113::$getById is deprecated /var/www/html/vendor/codeception/stub/src/Stub.php:545
2x DEPRECATION: Creation of dynamic property Mock_UserProgressManager_552b4ecd::$findByUser is deprecated /var/www/html/vendor/codeception/stub/src/Stub.php:545
DEPRECATION: Creation of dynamic property Mock_RedisService_5f628dd4::$create is deprecated /var/www/html/vendor/codeception/stub/src/Stub.php:545
DEPRECATION: Creation of dynamic property Mock_EntityCacheService_64a56d9f::$addLevelComplete is deprecated /var/www/html/vendor/codeception/stub/src/Stub.php:545
DEPRECATION: Creation of dynamic property Mock_EntityCacheService_64a56d9f::$updateBoosts is deprecated /var/www/html/vendor/codeception/stub/src/Stub.php:545
DEPRECATION: Creation of dynamic property Mock_EntityCacheService_64a56d9f::$reset is deprecated /var/www/html/vendor/codeception/stub/src/Stub.php:545

/var/www/html $ composer show | grep codeception
Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (through xdebug.client_host/xdebug.client_port).
codeception/assert-throws             1.3.0    Assert exception was thrown without stopping a test
codeception/codeception               5.0.11   BDD-style testing framework
codeception/lib-asserts               2.1.0    Assertion methods used by Codeception core and Asserts module
codeception/lib-innerbrowser          3.1.3    Parent library for all Codeception framework modules and PhpBrowser
codeception/lib-web                   1.0.2    Library containing files used by module-webdriver and lib-innerbrowser or module-phpbrowser
codeception/lib-xml                   1.0.1    Files used by module-rest and module-soap
codeception/module-asserts            3.0.0    Codeception module containing various assertions
codeception/module-rest               3.3.2    REST module for Codeception
codeception/module-symfony            3.1.1    Codeception module for Symfony framework
codeception/stub                      4.1.1    Flexible Stub wrapper for PHPUnit's Mock Builder

Looks like a similar fix with https://github.com/Codeception/Codeception/pull/6666/files

dmamchyts commented 1 year ago

Sorry, my mistake. Problem was on my side.