From a13781bc9593983cc9e52f4b5ef24847fa1c7a6c Mon Sep 17 00:00:00 2001 From: root Date: Thu, 11 Dec 2025 07:12:09 +0000 Subject: [PATCH] Fix bundle compiler to only consider .php files for PHP models MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/RSpade/Core/Bundle/BundleCompiler.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/RSpade/Core/Bundle/BundleCompiler.php b/app/RSpade/Core/Bundle/BundleCompiler.php index 2a03a1415..abff36683 100755 --- a/app/RSpade/Core/Bundle/BundleCompiler.php +++ b/app/RSpade/Core/Bundle/BundleCompiler.php @@ -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