-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Cache] Ignore missing annotations.php #22965
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
Conversation
In 3.2 we use file_exists, this somehow got lost in a merge I guess |
you refactored in #20694 :) from the looks of it i'd say stream_resolve_include_path + include without @ but im not sure that needs to be supported or so; otherwise file_exists/is_file will do. Note 3.2 doesnt use @ |
let's do the same as in 3.2, that's fine |
This should do. |
Thank you @ro0NL. |
This PR was squashed before being merged into the 3.3 branch (closes #22965). Discussion ---------- [Cache] Ignore missing annotations.php | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes (different in 3.2) | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features--> Avoids the following notices if cache is not warmed up (i.e. `cache:clear --no-warmup` > hit the browser). ``` Warning: include(<base-path>/app/cache/<env>/annotations.php): failed to open stream: No such file or directory Warning: include(): Failed opening '<base-path>/app/cache/<env>/annotations.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') ``` Commits ------- e8f70c7 [Cache] Ignore missing annotations.php
Avoids the following notices if cache is not warmed up (i.e.
cache:clear --no-warmup
> hit the browser).