Skip to content

ClassManifest::validateItemCache always return false #11531

@lekoala

Description

@lekoala

Module version(s) affected

5.3

Description

I was suspecting that something was slow on my machine because dev/build was taking ages

During debugging, I saw that my individuals cache entries never contain "enums", eg:

<?php //Tip_php_9d87b488d828b5dd1111c02e4421238d

return [PHP_INT_MAX, [
    'classes' => [
        'SilverStripe\\Forms\\Tip' => [
            'extends' => [],
            'interfaces' => [],
        ],
    ],
    'interfaces' => [],
    'traits' => [],
]];

therefore, validateItemCache is always false, since it checks for enums

How to reproduce

Refresh the manifest
See if the individual cache files contain enum
See that it will never return true because of that

Possible Solution

No response

Additional Context

Also see

https://github.com/silverstripe/silverstripe-framework/issues

Validations

  • Check that there isn't already an issue that reports the same bug
  • Double check that your reproduction steps work in a fresh installation of silverstripe/installer (with any code examples you've provided)

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