Getting error after upgrade to 2.4.2-p1, on di:compile command
Application code generator... 3/9 [=========>------------------] 33% 1 min 380.0 MiBPHP Fatal error: Uncaught TypeError: rtrim() expects parameter 1 to be string, bool given in setup\src\Magento\Setup\Module\Di\Code\Scanner\PhpScanner.php:95