Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP 8.0
10-12-2020, 01:39 AM, (This post was last modified: 10-12-2020, 01:39 AM by TurboPT.)
#5
RE: PHP 8.0
Here's an updated stan.neon config, checks the entire includes/ dir, without running out of memory, ignoring the 3rd party dirs (phplot, tcpdf, etc) ... still many false positives, but still working through the configuration:

Code:
parameters:
    level: 5
    scanFiles:
      - includes/DefinePOClass.php
      - includes/DefineCartClass.php
      - includes/DefinePOClass.php
      - includes/ConnectDB_mysqli.inc
      - includes/SQL_CommonFunctions.inc
      - includes/class.pdf.php
    scanDirectories:
      - includes
    paths:
      - includes
    fileExtensions:
      - php
      - inc
    excludes_analyse:
      - includes/phplot
      - includes/tcpdf
      - includes/php-gettext
      - includes/barcodepack

Run with command: (note, no file at the end as was previously done, the paths: option in the config specifies where to scan)

Quote:>vendor\bin\phpstan analyse -c stan.neon
Reply


Messages In This Thread
PHP 8.0 - by TimSchofield - 10-09-2020, 10:48 PM
RE: PHP 8.0 - by TurboPT - 10-11-2020, 03:05 AM
RE: PHP 8.0 - by TimSchofield - 10-11-2020, 07:35 AM
RE: PHP 8.0 - by TurboPT - 10-11-2020, 11:29 PM
RE: PHP 8.0 - by TurboPT - 10-12-2020, 01:39 AM
RE: PHP 8.0 - by TimSchofield - 10-12-2020, 07:10 AM
RE: PHP 8.0 - by TurboPT - 10-13-2020, 11:14 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)