1
0
Fork 0
Commit Graph

144 Commits (main)

Author SHA1 Message Date
Guy Sartorelli d93239ddd9
Add audit command to check for security issues (#10798)
Closes #10329
2022-06-22 15:15:01 +02:00
Jordi Boggiano 53680afb85
Merge branch '2.3' into main 2022-06-22 13:09:06 +02:00
Jordi Boggiano bad3eb2cd9
Update deps, update baseline (1958, 103) 2022-06-22 09:49:09 +02:00
Jordi Boggiano 203ec4b485
Update baseline (1947, 103) 2022-06-08 15:07:38 +02:00
Jordi Boggiano cb76394800
Merge branch '2.2' into 2.3 2022-06-06 16:34:34 +02:00
Fabien Villepinte 1e9210f7b1
Fix TypeError when a JSON file can not be read (#10818) 2022-06-04 15:20:58 +02:00
Jordi Boggiano 202ef9031c
Merge branch '2.2' into 2.3 2022-05-25 21:44:40 +02:00
Jordi Boggiano 25542aca70
Update baseline 2022-05-24 21:26:37 +02:00
Jordi Boggiano 1d0fa93495
Fix lock:false still outputting lock file changes 2022-05-11 09:42:13 +02:00
Jordi Boggiano da322643d6
Fix retry to add a small pause between retries after the second one, refs #10716 2022-04-29 14:50:58 +02:00
Jordi Boggiano f8eed28347
Update baseline (2030, 104) 2022-04-29 11:25:23 +02:00
Jordi Boggiano d5a8d2be22
Enable phpstan bleedingEdge 2022-04-29 11:10:21 +02:00
Jordi Boggiano 474d0dc82d
Extract phpstan extension config into its own file 2022-04-29 09:04:02 +02:00
Markus Staab 532166a892
ws 2022-04-28 13:23:05 +02:00
Markus Staab 0cd02f6257
added phpstan ConfigReturnTypeExtension 2022-04-28 13:22:56 +02:00
Jordi Boggiano f435618cb3
Update phpstan baseline (2086, 104) 2022-04-27 21:54:54 +02:00
Jordi Boggiano 615530f0a1
Merge branch '2.2' into main, update baseline (2085, 104) 2022-04-13 16:18:25 +02:00
Jordi Boggiano d64e32c991
Merge remote-tracking branch 'ktomk/patch-validate-no-check-lock' into 2.2 2022-04-13 15:21:36 +02:00
Jordi Boggiano 0a8dfe6ef7
Clarify that autoloader-suffix should be a non-empty-string, fixes #10720 (#10725) 2022-04-13 15:17:07 +02:00
Jordi Boggiano bb0edce095
Fixed lock file being used when lock:false is in config, refs #10715 (#10726) 2022-04-13 14:52:13 +02:00
Tom Klingenberg 939c998baf validate lock-file if configured (#10715, --check-lock)
if no lock-file is configured, turn lock file validation errors into
warnings (implicit --no-check-lock) unless those are explicitly promoted
via the new --check-lock option.

- `{"config": {"lock": false}}` is an implicit `--no-check-lock` for
  composer validate.
- `--check-lock` overrides an (implicit or explicit) `--no-check-lock`,
  always.

issue: #10715
2022-04-12 22:30:41 +02:00
Jordi Boggiano 499fc29e79
Update baseline (2086, 104) 2022-04-07 16:12:25 +02:00
Michael Babker 58e135181d
Restore the ability to list the scripts in the 'run-script' command without providing a script (#10710) 2022-04-07 13:17:28 +02:00
Jordi Boggiano 2ef9e14c2f
Update baseline (2086, 104) 2022-04-06 21:48:30 +02:00
Jordi Boggiano a71985ce01
Update baseline (2150, 103) 2022-03-30 16:25:38 +02:00
Jordi Boggiano 6bd75d5738
Update phpstan & baseline (2158, 104) 2022-03-29 14:03:05 +02:00
Jordi Boggiano 166542f981
Fix param nullability 2022-03-21 14:05:56 +01:00
Jordi Boggiano bbf2e94579
Fix a few type errors, update baseline (2170, 104) 2022-03-18 10:14:38 +01:00
Jordi Boggiano 8d446bef67
Update baseline (2182+104) 2022-03-16 10:14:17 +01:00
Ondřej Mirtes 4fdcfb166f
Better ignore-by-php-version.neon.php 2022-02-24 13:24:37 +01:00
Jordi Boggiano beb575dd00
Fix more issues, update baseline (2203/106) 2022-02-24 13:24:35 +01:00
Jordi Boggiano 0db443ba5f
Add visibility to all consts, fixes #10550 2022-02-23 14:28:04 +01:00
Jordi Boggiano 89ce53250e
Final type additions 2022-02-23 12:54:07 +01:00
Jordi Boggiano 14fcfc3ae1
Update baseline (2244 errors) 2022-02-23 11:39:26 +01:00
Jordi Boggiano fb854df124
Update phpstan config 2022-02-21 13:49:26 +01:00
Jordi Boggiano 5c98a2cf8e
Add phpstan-symfony to get type info about console InputInterface, fix many errors (#10476)
Extract common init/require commands functionality into PackageDiscoveryTrait
Extract some helper methods into BaseCommand for better types
2022-02-16 13:24:57 +01:00
Jordi Boggiano 48758c0207
Update deps & baseline 2022-02-15 17:05:01 +01:00
Jordi Boggiano 4b67a97a25
Update baseline 2022-02-04 16:50:01 +01:00
Jordi Boggiano 3446091027
Merge branch '2.2' into main 2022-02-04 16:31:14 +01:00
Jordi Boggiano 335c3c9450
Update baseline 2022-02-04 16:25:16 +01:00
Jordi Boggiano 62d5f4f295
Fix phpstan errors 2022-02-02 22:18:00 +01:00
Jordi Boggiano 31429ce099
Update baselines 2022-01-21 16:11:22 +01:00
Jordi Boggiano bab974575c
Merge branch '2.2' into main 2022-01-21 16:00:50 +01:00
Jordi Boggiano e3d99cac59
Fix phpstan issues, update baseline and pin PHPStan version in 2.2 branch (#10474) 2022-01-21 12:48:16 +01:00
Ondřej Mirtes a943aacd10
Update to PHPStan 1.4.1 (#10466) 2022-01-21 10:21:09 +01:00
Ondřej Mirtes cd34886e9d
Update to PHPStan 1.4 (#10459) 2022-01-17 15:18:33 +01:00
Jordi Boggiano 5e4a8a882d
Allow ProcessExecutor to receive commands as arrays, refs #6552 (#10435) 2022-01-06 13:56:12 +01:00
Jordi Boggiano 4e6d54b731
Fix all 5.3 $this-in-closure usages 2022-01-03 16:32:39 +01:00
Jordi Boggiano 5805a68645
Fix some todos dropping support for older Symfony releases 2022-01-03 14:51:41 +01:00
Jordi Boggiano 0b3adc84da
Fix a few phpstan errors and add a php8+ baseline for the rest 2022-01-01 14:54:24 +01:00
Jordi Boggiano 22fed0d445
Get rid of prophecy usage 2022-01-01 14:54:22 +01:00
Jordi Boggiano 96486d81cb
Fix many PHPStan issues and update baseline 2022-01-01 14:54:21 +01:00
Jordi Boggiano ffd62795bc
Get rid of all the ->at() mock invocations 2022-01-01 14:54:20 +01:00
Jordi Boggiano 59603a357a
Remove PHPUnit direct require again 2022-01-01 14:54:19 +01:00
Jordi Boggiano 613980b039
Update baseline 2021-12-22 11:00:06 +01:00
Jordi Boggiano 77fec4dc76
Bump to level 8, enable strict rules, and ignore all existing errors with baseline 2021-12-07 12:50:03 +01:00
Jordi Boggiano 2d92e2119a
Add deprecations checks 2021-12-07 09:33:45 +01:00
Jordi Boggiano f509c41280
Upgrade PHPStan to 1.0 (#10253)
Co-authored-by: Martin Herndl <martin@herndl.org>
2021-11-14 20:42:24 +01:00
Jordi Boggiano cb0293cf30
Finalize phpstan level 6 for tests dir, closes #10159 2021-11-02 14:32:09 +01:00
Jordi Boggiano 3d9e9ba66f
Fix exclusion of fooProvider errors 2021-10-27 15:10:18 +02:00
Jordi Boggiano f19d01ef92
Ignore less things in tests 2021-10-26 21:14:44 +02:00
Jordi Boggiano 81ad4e7e58
Fix deprecated phpstan config 2021-10-25 14:16:20 +02:00
Jordi Boggiano 6d37c1f8ab
Ignore unmatched errors 2021-10-19 00:09:59 +02:00
Jordi Boggiano 0b8089fe80
Ignore some irrelevant PHPStan errors in test files 2021-10-19 00:04:49 +02:00
Jordi Boggiano 0761474599
Add type info to many properties/methods 2021-08-30 14:46:49 +02:00
Jordi Boggiano 024f0eda53
Add a bunch of type info to Util namespace 2021-08-29 20:07:50 +02:00
Jordi Boggiano d3c176ec69
PHPStan Level 5 (#10070)
* Bump PHPStan to level 5

* Update seld/phar-utils to latest

* Add phpstan-setup / phpstan scripts
2021-08-21 17:41:52 +02:00
Ondřej Mirtes c65890d2d3
DiagnoseCommand - fix PHPDoc (#9991) 2021-07-07 21:52:53 +02:00
Jordi Boggiano c686bbd7e2
Clean up invalid errors in baseline 2021-06-03 11:40:02 +02:00
Jordi Boggiano f3bc2a3aed
Bump phpstan to level 4 using baseline 2021-06-03 11:36:39 +02:00
Jordi Boggiano 4940009f83
Bump phpstan to level 3 (#9734)
Clean up PackageInterface/CompletePackageInterface, add missing methods, type things in solver as BasePackage, added CompleteAliasPackage, ..
2021-03-09 15:49:40 +01:00
Jordi Boggiano 980eef5b68
Fix InstalledVersions issues in PHPStan by including the local file first 2021-02-25 10:49:24 +01:00
Andrés De la Cruz 480a6439fd
Fix phpstan phpdocs issues (#9478) 2020-11-20 09:28:09 +01:00
Jordi Boggiano c2317d59bb
Bump phpstan and deps 2020-09-11 11:56:16 +02:00
Jordi Boggiano 1593b67230
Fix warnings on higher phpunit versions 2020-09-11 11:01:32 +02:00
Jordi Boggiano ae44a5963d
ZipArchive issues fixed in phpstan it seems 2020-06-22 10:54:38 +02:00
Ayesh Karunaratne d906ff12c9
PHPStan fixes: `autoload_files`, and `ignoreErrors` (#8974)
* PHPStan: Remove autoload_files directive as it is not necessary anymore

* PHPStan: Add error exclusions for sapi_windows_set_ctrl_handler function

* PHPStan: Add error exclusions for ZipArchive::LIBZIP_VERSION

* PHPStan: Require phpstan ^0.12.26

* Ensure zip ext is available on gh actions

Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2020-06-16 10:05:44 +02:00
Jordi Boggiano c9571f90b4
Run phpstan with regular output and then run again to cs2pr if there was an error, to keep usable output in CI logs 2020-06-04 16:11:02 +02:00
Jordi Boggiano e9a2f922d5
Fix phpstan config 2020-04-22 10:37:21 +02:00
Jordi Boggiano 00ad18b742
Fix last phpstan errors 2020-04-15 01:09:39 +02:00
Jordi Boggiano b166ef4b58
Fix more phpstan errors 2020-04-07 14:57:37 +02:00
Jordi Boggiano 80505e745e
Fix phpstan issues 2020-04-07 14:40:51 +02:00
Adam Žurek 25cd2382cb
Raise phpstan level to 1 (#8027) 2020-04-07 14:13:50 +02:00
Jordi Boggiano 12a6375548
Ignore phpstan error 2020-02-11 11:46:19 +01:00
Jordi Boggiano 702a532a61
Build improvements 2020-02-10 08:56:12 +01:00
Jordi Boggiano 589abb06a3
PHPStan fixes 2020-02-07 23:10:10 +01:00
Jordi Boggiano d18b5b6f2e
Update phpstan config 2020-01-29 23:13:55 +01:00
Adam Žurek e5b13b4c8f Added PHPStan rule that checks we don't use $this in closures. 2019-12-16 21:58:05 +01:00
Adam Žurek 406a28708f updated phpstan to 0.12 2019-12-16 21:58:05 +01:00
Andreas Möller 48023e9511
Enhancement: Configure paths and autoload files via phpstan/config.neon 2019-12-10 17:08:55 +01:00
Jordi Boggiano 675f75c4b4
Remove unnecessary config from phpstan 2019-08-02 16:41:06 +02:00
Jordi Boggiano 2c520bf93b
Fix build 2019-02-18 13:37:30 +01:00
Jordi Boggiano 799717f102
Tweak and fix some more phpstan reports 2019-02-18 13:05:14 +01:00
CZechBoY a062cd1a31
added phpstan on level 0 2019-02-18 13:05:14 +01:00