Console Error logs

Php (B2B) Failure
PHPUnit 10.5.60 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.4.1
Configuration: /var/www/html/dev/tests/static/phpunit.xml

F.S.F.                                                              6 / 6 (100%)

Time: 00:05.698, Memory: 42.00 MB

There were 2 failures:

1) Magento\Test\Php\LiveCodeTest::testCodeStyle
PHP Code Sniffer detected 1 violation(s): 

FILE: /var/www/html/app/code/Magento/Sales/Model/Order/Invoice.php
--------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 12 WARNINGS AFFECTING 12 LINES
--------------------------------------------------------------------------------------------------------
  32 | WARNING | Visibility must be declared on all constants if your project supports PHP 7.1 or later
  34 | WARNING | Visibility must be declared on all constants if your project supports PHP 7.1 or later
  36 | WARNING | Visibility must be declared on all constants if your project supports PHP 7.1 or later
  39 | WARNING | Visibility must be declared on all constants if your project supports PHP 7.1 or later
  41 | WARNING | Visibility must be declared on all constants if your project supports PHP 7.1 or later
  43 | WARNING | Visibility must be declared on all constants if your project supports PHP 7.1 or later
  45 | WARNING | Visibility must be declared on all constants if your project supports PHP 7.1 or later
  47 | WARNING | Visibility must be declared on all constants if your project supports PHP 7.1 or later
 562 | WARNING | Static method cannot be intercepted and its use is discouraged.
 577 | WARNING | Tags visual alignment must be consistent
 776 | WARNING | Possible useless method overriding detected
 786 | WARNING | Possible useless method overriding detected
--------------------------------------------------------------------------------------------------------



Failed asserting that 1 matches expected 0.

/var/www/html/dev/tests/static/testsuite/Magento/Test/Php/LiveCodeTest.php:257

2) Magento\Test\Php\LiveCodeTest::testPhpStan
PHPStan detected violation(s):
 ------ --------------------------------------------------- 
  Line   app/code/Magento/Sales/Model/Order/Invoice.php     
 ------ --------------------------------------------------- 
  778    Call to an undefined static method                 
         Magento\Sales\Model\AbstractModel::_beforeSave().  
  788    Call to an undefined static method                 
         Magento\Sales\Model\AbstractModel::_afterSave().   
 ------ --------------------------------------------------- 


 [ERROR] Found 2 errors                                                         


Failed asserting that 1 matches expected 0.

/var/www/html/dev/tests/static/testsuite/Magento/Test/Php/LiveCodeTest.php:406

FAILURES!
Tests: 6, Assertions: 5, Failures: 2, Skipped: 1.