Fix bundle compiler to only consider .php files for PHP models

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-12-11 07:12:09 +00:00
parent fd74f48e7a
commit a13781bc95

View File

@@ -1202,6 +1202,11 @@ class BundleCompiler
// Find all PHP models in the bundle
$models_in_bundle = [];
foreach ($all_bundle_files as $file) {
// Only consider .php files for PHP models
if (!str_ends_with($file, '.php')) {
continue;
}
$relative = str_replace(base_path() . '/', '', $file);
// Check if this is a PHP file with a class