Skip to content

[PHP 8.5] Errors coming from OpenMage testing #518

@addison74

Description

@addison74

Deprecated functionality: Non-canonical cast (boolean) is deprecated, use the (bool) cast instead in /var/www/html/vendor/shardj/zf1-future/library/Zend/Db/Profiler.php on line 138

The error is one of the form, change boolean to bool.

Deprecated functionality: Non-canonical cast (integer) is deprecated, use the (int) cast instead in /var/www/html/vendor/shardj/zf1-future/library/Zend/Db/Profiler.php on line 168

Another change here, from integer to int.

In this file //library/Zend/Date/DateObject.php

    protected static function _getTagSupportForCache()
    {
        $backend = self::$_cache->getBackend();
        if ($backend instanceof Zend_Cache_Backend_ExtendedInterface) {
            $cacheOptions = $backend->getCapabilities();
            self::$_cacheTags = $cacheOptions['tags'];
        } else {
            self::$_cacheTags = false;
        }

        return self::$_cacheTags;
    }

it should be self::$_cacheTags = (bool) false;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions