You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a PHP file checks for the existence of a class before defining it, Rector throws an Analyze Error: "Class X was not found while trying to analyse it", and skips the entire file.
Minimal PHP Code Causing Issue
<?php
if (!class_exists('Foobaer')) {
class Foobaer {
}
}
Expected Behaviour
Rector should be able to analyse a file with such a construct in it, without throwing errors
The text was updated successfully, but these errors were encountered:
Bug Report
If a PHP file checks for the existence of a class before defining it, Rector throws an Analyze Error: "Class X was not found while trying to analyse it", and skips the entire file.
Minimal PHP Code Causing Issue
Expected Behaviour
Rector should be able to analyse a file with such a construct in it, without throwing errors
The text was updated successfully, but these errors were encountered: