[Issue] improve and make more strict autoload.php #29527
Labels
Component: Autoload
Fixed in 2.4.x
The issue has been fixed in 2.4-develop branch
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Priority: P3
May be fixed according to the position in the backlog.
Reproduced on 2.4.x
The issue has been reproduced on latest 2.4-develop branch
Severity: S3
Affects non-critical data or functionality and does not force users to employ a workaround.
Triage: Dev.Experience
Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Uh oh!
There was an error while loading. Please reload this page.
This issue is automatically created based on existing pull request: #28923: improve and make more strict autoload.php
Preconditions (*)
two improvements:
is_readable
instead offile_exists
. if we userequire
orinclude
on a existing file that is not readable php generate errors. So we need to chech if file_exists and is_readable (is_readable
do both things)$vendorAutoload
, it's allow us to have a more readable code with early return.Related Pull Requests
none
Fixed Issues (if relevant)
none
Steps to reproduce(*)
not necessary, if CI passes this code is good, it's only technical improvement.
Actual Result:(*)
Expected Result:(*)
Contribution checklist (*)
The text was updated successfully, but these errors were encountered: