45m 51s
Feb 28, 2025, 7:17 AM

joomla-cms

[Cypress] PHP Backend Notice com_media/Files (#44976) * [Cypress] PHP Backend Notice com_media/Files.cy.js Fixing all Joomla backend PHP notices from Cypress test file `api/com_media/Files.cy.js` and doing some refactoring. Fixed PHP notices are: ``` [Sat Feb 22 18:28:44.019593 2025] [php:notice] [pid 31:tid 31] [client 10.0.0.1:64714] PHP Notice: exif_imagetype(): Error reading from /var/www/html/files/test-image-1.jpg! in /var/www/html/libraries/src/Helper/MediaHelper.php on line 93 [Sat Feb 22 18:28:44.022074 2025] [php:notice] [pid 31:tid 31] [client 10.0.0.1:64714] PHP Notice: getimagesize(): Error reading from /var/www/html/files/test-image-1.jpg! in /var/www/html/libraries/src/Image/Image.php on line 177 [Sat Feb 22 18:28:44.258619 2025] [php:notice] [pid 31:tid 31] [client 10.0.0.1:64714] PHP Notice: exif_imagetype(): Error reading from /var/www/html/files/test-dir/test-image-1-subfolder.jpg! in /var/www/html/libraries/src/Helper/MediaHelper.php on line 93 [Sat Feb 22 18:28:44.259092 2025] [php:notice] [pid 31:tid 31] [client 10.0.0.1:64714] PHP Notice: getimagesize(): Error reading from /var/www/html/files/test-dir/test-image-1-subfolder.jpg! in /var/www/html/libraries/src/Image/Image.php on line 177 [Sat Feb 22 18:28:47.177357 2025] [php:notice] [pid 31:tid 31] [client 10.0.0.1:64714] PHP Notice: exif_imagetype(): Error reading from /var/www/html/files/test-dir/todelete.jpg! in /var/www/html/libraries/src/Helper/MediaHelper.php on line 93 [Sat Feb 22 18:28:47.178099 2025] [php:notice] [pid 31:tid 31] [client 10.0.0.1:64714] PHP Notice: getimagesize(): Error reading from /var/www/html/files/test-dir/todelete.jpg! in /var/www/html/libraries/src/Image/Image.php on line 177 [Sat Feb 22 18:28:47.564807 2025] [php:notice] [pid 31:tid 31] [client 10.0.0.1:64714] PHP Notice: exif_imagetype(): Error reading from /var/www/html/images/test-dir/todelete.jpg! in /var/www/html/libraries/src/Helper/MediaHelper.php on line 93 [Sat Feb 22 18:28:47.565288 2025] [p

laoneo
laoneo
pushed
6af88f52

Console Logs

23501 ------ ------------------------------------------------------------------ 131s
23502 168 Call to deprecated method getUser() of class Joomla\CMS\Factory: 131s
23503 4.3 will be removed in 6.0 131s
23504 Load the user service from the dependency injection 131s
23505 container or get from the application object 131s
23506 Example: 131s
23507 Factory::getApplication()->getIdentity(); 131s
23508 🪪 staticMethod.deprecated 131s
23509 ------ ------------------------------------------------------------------ 131s
23510 131s
23511 ------ ----------------------------------------------------------------------- 131s
23512 Line plugins/system/guidedtours/src/Extension/GuidedTours.php 131s
23513 ------ ----------------------------------------------------------------------- 131s
23514 292 Parameter $item of method 131s
23515 Joomla\Plugin\System\GuidedTours\Extension\GuidedTours::processTour() 131s
23516 has typehint with deprecated class Joomla\CMS\Object\CMSObject: 131s
23517 4.3 will be removed in 6.0 131s
23518 Use \stdClass or \Joomla\Registry\Registry instead. 131s
23519 Example: new \Joomla\Registry\Registry(); 131s
23520 🪪 parameter.deprecatedClass 131s
23521 ------ ----------------------------------------------------------------------- 131s
23522 131s
23523 ------ ---------------------------------------------------------------------- 131s
23524 Line plugins/system/httpheaders/postinstall/introduction.php 131s
23525 ------ ---------------------------------------------------------------------- 131s
23526 40 Call to deprecated method getDbo() of class Joomla\CMS\Factory: 131s
23527 4.3 will be removed in 6.0 131s
23528 Use the database service in the DI container 131s
23529 Example: 131s
23530 Factory::getContainer()->get(DatabaseInterface::class); 131s
23531 🪪 staticMethod.deprecated 131s
23532 ------ ---------------------------------------------------------------------- 131s
23533 131s
23534 ------ --------------------------------------------------------------------- 131s
23535 Line plugins/system/jooa11y/src/Extension/Jooa11y.php 131s
23536 ------ --------------------------------------------------------------------- 131s
23537 202 Inner named functions are not supported by PHPStan. Consider 131s
23538 refactoring to an anonymous function, class method, or a 131s
23539 top-level-defined function. See issue #165 131s
23540 (https://github.com/phpstan/phpstan/issues/165) for more details. 131s
23541 🪪 function.inner 131s
23542 215 Function processProps not found. 131s
23543 🪪 function.notFound 131s
23544 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 131s
23545 216 Function processProps not found. 131s
23546 🪪 function.notFound 131s
23547 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 131s
23548 ------ --------------------------------------------------------------------- 131s
23549 131s
23550 ------ ----------------------------------------------------------------------- 131s
23551 Line plugins/system/languagefilter/src/Extension/LanguageFilter.php 131s
23552 ------ ----------------------------------------------------------------------- 131s
23553 528 Access to deprecated static property $language of class 131s
23554 Joomla\CMS\Factory: 131s
23555 4.3 will be removed in 6.0 131s
23556 Use the language service in the DI container or get from 131s
23557 the application object 131s
23558 Example: 131s
23559 Factory::getApplication()->getLanguage(); 131s
23560 🪪 staticProperty.deprecated 131s
23561 794 Call to deprecated method register() of class JLoader: 131s
23562 4.3 will be removed in 6.0 131s
23563 Classes should be autoloaded. Use 131s
23564 JLoader::registerPrefix() or JLoader::registerNamespace() to 131s
23565 register an autoloader for your files. 131s
23566 🪪 staticMethod.deprecated 131s
23567 ------ ----------------------------------------------------------------------- 131s
23568 131s
23569 ------ ---------------------------------------------------------------------------------------------------- 131s
23570 Line plugins/system/stats/src/Extension/Stats.php 131s
23571 ------ ---------------------------------------------------------------------------------------------------- 131s
23572 586 Call to deprecated method getInstance() of class 131s
23573 Joomla\CMS\Cache\Cache: 131s
23574 4.2 will be removed in 6.0 131s
23575 Use the cache controller factory instead 131s
23576 Example: 131s
23577 Factory::getContainer()->get(CacheControllerFactoryInterface::class)->createCacheController($type, 131s
23578 $options); 131s
23579 🪪 staticMethod.deprecated 131s
23580 ------ ---------------------------------------------------------------------------------------------------- 131s
23581 131s
23582 ------ --------------------------------------------------------------- 131s
23583 Line plugins/system/webauthn/src/Authentication.php 131s
23584 ------ --------------------------------------------------------------- 131s
23585 193 Class Webauthn\AuthenticatorSelectionCriteria does not have a 131s
23586 constructor and must be instantiated without any parameters. 131s
23587 🪪 new.noConstructor 131s
23588 ------ --------------------------------------------------------------- 131s
23589 131s
23590 ------ --------------------------------------------------------- 131s
23591 Line plugins/system/webauthn/src/MetadataRepository.php 131s
23592 ------ --------------------------------------------------------- 131s
23593 129 Call to deprecated method forUnsecuredSigner() of class 131s
23594 Lcobucci\JWT\Configuration: 131s
23595 Deprecated since v4.3 131s
23596 🪪 staticMethod.deprecated 131s
23597 ------ --------------------------------------------------------- 131s
23598 131s
23599 ------ -------------------------------------------------------------------- 131s
23600 Line plugins/system/webauthn/src/PluginTraits/UserProfileFields.php (in 131s
23601 context of class Joomla\Plugin\System\Webauthn\Extension\Webauthn) 131s
23602 ------ -------------------------------------------------------------------- 131s
23603 178 Call to deprecated method register() of class 131s
23604 Joomla\CMS\HTML\HTMLHelper: 131s
23605 4.0 will be removed in 6.0 131s
23606 Use the service registry instead 131s
23607 HTMLHelper::getServiceRegistry()->register($key, 131s
23608 $function); 131s
23609 🪪 staticMethod.deprecated 131s
23610 ------ -------------------------------------------------------------------- 131s
23611 131s
23612 ------ --------------------------------------------------------------------- 131s
23613 Line plugins/task/sitestatus/services/provider.php 131s
23614 ------ --------------------------------------------------------------------- 131s
23615 40 Instantiated class JConfig not found. 131s
23616 🪪 class.notFound 131s
23617 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 131s
23618 ------ --------------------------------------------------------------------- 131s
23619 131s
23620 ------ -------------------------------------------------------------------------------------- 131s
23621 Line plugins/task/updatenotification/src/Extension/UpdateNotification.php 131s
23622 ------ -------------------------------------------------------------------------------------- 131s
23623 248 Call to deprecated method getInstance() of class 131s
23624 Joomla\CMS\Table\Table: 131s
23625 4.3 will be removed in 6.0 131s
23626 Use the MvcFactory instead 131s
23627 Example: 131s
23628 Factory::getApplication()->bootComponent('...')->getMVCFactory()->createTable($name, 131s
23629 $prefix, $config); 131s
23630 🪪 staticMethod.deprecated 131s
23631 ------ -------------------------------------------------------------------------------------- 131s
23632 131s
23633 ------ ----------------------------------------------------------------------- 131s
23634 Line plugins/user/joomla/src/Extension/Joomla.php 131s
23635 ------ ----------------------------------------------------------------------- 131s
23636 221 Access to deprecated static property $language of class 131s
23637 Joomla\CMS\Factory: 131s
23638 4.3 will be removed in 6.0 131s
23639 Use the language service in the DI container or get from 131s
23640 the application object 131s
23641 Example: 131s
23642 Factory::getApplication()->getLanguage(); 131s
23643 🪪 staticProperty.deprecated 131s
23644 226 Access to deprecated static property $language of class 131s
23645 Joomla\CMS\Factory: 131s
23646 4.3 will be removed in 6.0 131s
23647 Use the language service in the DI container or get from 131s
23648 the application object 131s
23649 Example: 131s
23650 Factory::getApplication()->getLanguage(); 131s
23651 🪪 staticProperty.deprecated 131s
23652 268 Access to deprecated static property $language of class 131s
23653 Joomla\CMS\Factory: 131s
23654 4.3 will be removed in 6.0 131s
23655 Use the language service in the DI container or get from 131s
23656 the application object 131s
23657 Example: 131s
23658 Factory::getApplication()->getLanguage(); 131s
23659 🪪 staticProperty.deprecated 131s
23660 388 Call to deprecated method getSession() of class Joomla\CMS\Factory: 131s
23661 4.3 will be removed in 6.0 131s
23662 Use the session service in the DI container or get from 131s
23663 the application object 131s
23664 Example: 131s
23665 Factory::getApplication()->getSession(); 131s
23666 🪪 staticMethod.deprecated 131s
23667 ------ ----------------------------------------------------------------------- 131s
23668 131s
23669 ------ --------------------------------------------------------------- 131s
23670 Line plugins/user/profile/src/Extension/Profile.php 131s
23671 ------ --------------------------------------------------------------- 131s
23672 127 Call to deprecated method register() of class 131s
23673 Joomla\CMS\HTML\HTMLHelper: 131s
23674 4.0 will be removed in 6.0 131s
23675 Use the service registry instead 131s
23676 HTMLHelper::getServiceRegistry()->register($key, 131s
23677 $function); 131s
23678 🪪 staticMethod.deprecated 131s
23679 131 Call to deprecated method register() of class 131s
23680 Joomla\CMS\HTML\HTMLHelper: 131s
23681 4.0 will be removed in 6.0 131s
23682 Use the service registry instead 131s
23683 HTMLHelper::getServiceRegistry()->register($key, 131s
23684 $function); 131s
23685 🪪 staticMethod.deprecated 131s
23686 135 Call to deprecated method register() of class 131s
23687 Joomla\CMS\HTML\HTMLHelper: 131s
23688 4.0 will be removed in 6.0 131s
23689 Use the service registry instead 131s
23690 HTMLHelper::getServiceRegistry()->register($key, 131s
23691 $function); 131s
23692 🪪 staticMethod.deprecated 131s
23693 139 Call to deprecated method register() of class 131s
23694 Joomla\CMS\HTML\HTMLHelper: 131s
23695 4.0 will be removed in 6.0 131s
23696 Use the service registry instead 131s
23697 HTMLHelper::getServiceRegistry()->register($key, 131s
23698 $function); 131s
23699 🪪 staticMethod.deprecated 131s
23700 ------ --------------------------------------------------------------- 131s
23701 131s
23702 ------ ----------------------------------------------------------------------- 131s
23703 Line plugins/user/profile/src/Field/TosField.php 131s
23704 ------ ----------------------------------------------------------------------- 131s
23705 80 Call to deprecated method getLanguage() of class Joomla\CMS\Factory: 131s
23706 4.3 will be removed in 6.0 131s
23707 Use the language service in the DI container or get from 131s
23708 the application object 131s
23709 Example: 131s
23710 Factory::getApplication()->getLanguage(); 131s
23711 🪪 staticMethod.deprecated 131s
23712 106 Call to deprecated method getLanguage() of class Joomla\CMS\Factory: 131s
23713 4.3 will be removed in 6.0 131s
23714 Use the language service in the DI container or get from 131s
23715 the application object 131s
23716 Example: 131s
23717 Factory::getApplication()->getLanguage(); 131s
23718 🪪 staticMethod.deprecated 131s
23719 ------ ----------------------------------------------------------------------- 131s
23720 131s
23721 ------ ----------------------------------------------------------------------- 131s
23722 Line plugins/user/terms/src/Field/TermsField.php 131s
23723 ------ ----------------------------------------------------------------------- 131s
23724 98 Call to deprecated method getLanguage() of class Joomla\CMS\Factory: 131s
23725 4.3 will be removed in 6.0 131s
23726 Use the language service in the DI container or get from 131s
23727 the application object 131s
23728 Example: 131s
23729 Factory::getApplication()->getLanguage(); 131s
23730 🪪 staticMethod.deprecated 131s
23731 ------ ----------------------------------------------------------------------- 131s
23732 131s
23733 ------ -------------------------------------------------------- 131s
23734 Line plugins/workflow/featuring/src/Extension/Featuring.php 131s
23735 ------ -------------------------------------------------------- 131s
23736 197 Call to deprecated method singularize() of class 131s
23737 Doctrine\Common\Inflector\Inflector. 131s
23738 🪪 staticMethod.deprecated 131s
23739 ------ -------------------------------------------------------- 131s
23740 131s
23741 ------ ---------------------------------------------------------- 131s
23742 Line plugins/workflow/publishing/src/Extension/Publishing.php 131s
23743 ------ ---------------------------------------------------------- 131s
23744 213 Call to deprecated method singularize() of class 131s
23745 Doctrine\Common\Inflector\Inflector. 131s
23746 🪪 staticMethod.deprecated 131s
23747 ------ ---------------------------------------------------------- 131s
23748 131s
23749 [ERROR] Found 3425 errors 131s
23750 131s
Exit Code 1