1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-11 01:22:54 +00:00
Commit graph

346 commits

Author SHA1 Message Date
Jordi Boggiano
37d722e73c
PHPStan/tests updates (#11996)
* Remove a bunch of inline ignores and migrate all PHPUnit assertions to static calls

* Update baseline (1573, 93)

* Update commit hash
2024-05-29 23:12:06 +02:00
Ondřej Mirtes
5bb30ca170
Update PHPStan (#11976)
* Update PHPStan

* Update inline ignores to `@phpstan-ignore` with error identifier
2024-05-22 09:09:04 +02:00
Jordi Boggiano
4e5be9ee7d
Emit warning instead of crashing on invalid security advisory API response, fixes #11767 2024-01-12 14:20:59 +01:00
Jordi Boggiano
a29acbdd2e
Ensure repos declaring security-advisories have at least an API or a restricted set of packages to avoid too many wasteful requests 2024-01-12 13:17:05 +01:00
Jordi Boggiano
75fd2bbeb2
Ensure we respect available-package-patterns and available-packages directives when fetching security advisories, fixes #11704 (#11773) 2024-01-11 16:44:27 +01:00
Stephan
5062338079
Audit: ignores configured repository options (#11173)
* Audit: ignores configured repository options

* ComposerRepository: add test case to assert that repo http options are used to make security advisory POST request
2023-08-29 15:16:34 +02:00
Jordi Boggiano
e7016b00a9
Upgrade to react/promise 3.0.0 (#10429) 2023-07-20 12:52:28 +02:00
Helmut Hummel
68b7a07187
Feature: Allow local directory paths in repository of type composer (#11526)
Fixes: #11519
2023-07-18 11:44:53 +02:00
Conrad Lara
c7f32820d7
Allow v2 metadata target to provide security advisories without releases. (#11257) 2023-01-13 22:20:03 +01:00
Jordi Boggiano
be053cb18e
Allow underscores in cache keys to avoid conflicts with package names containing underscore vs dashes, fixes #11224 (#11229) 2022-12-18 00:03:48 +01:00
Jordi Boggiano
bd6a5019b3
Update to composer/pcre 2.1 (#11189) 2022-11-17 11:34:54 +01:00
Jordi Boggiano
6c85b875f2
Update to PHPStan 1.9 2022-11-03 21:53:42 +01:00
Jordi Boggiano
8600894003 Update deps, constrain a few types to non-empty-strings 2022-10-12 09:19:36 +02:00
Jordi Boggiano
131da999ac
Fix CS (#11003) 2022-08-17 14:20:07 +02:00
Jordi Boggiano
e34c31dd8b
Merge branch '2.2' 2022-08-16 11:50:01 +02:00
Jordi Boggiano
104bf0d75d
Handle 404s gracefully when loading providers in ComposerRepo, fixes #10974 2022-08-16 11:44:21 +02:00
Jordi Boggiano
8c9f82dc1e
Move security advisory loading to repositories, allows others to provider them and reduces load on packagist.org for summary advisory reports 2022-06-24 16:26:57 +02:00
Mathias Reker ⚡️
4131f7cf4c
Static lambda (#10854)
Lambdas not (indirect) referencing $this must be declared static.
2022-06-22 14:19:18 +02:00
Stephan
b1828ef653
ComposerRepository: add a warning if the packages key doesn't match the package name (#10735) 2022-04-14 16:53:18 +02:00
Jordi Boggiano
f1ff4553d3
Fix handling of true return value for loadRootServerFile, fixes #10675 2022-03-30 17:55:47 +02:00
Jordi Boggiano
a7c2bd8aa1
Fix false return value in findPackage, fixes #10622 2022-03-16 14:35:59 +01:00
Jordi Boggiano
beb575dd00
Fix more issues, update baseline (2203/106) 2022-02-24 13:24:35 +01:00
Jordi Boggiano
6a466a120a
Enable strict types on all files 2022-02-24 13:24:34 +01:00
Jordi Boggiano
89ce53250e
Final type additions 2022-02-23 12:54:07 +01:00
Jordi Boggiano
6da38f83a0
Add parameter types to all the things 2022-02-22 16:48:53 +01:00
Alexander Schranz
1321bfca36
Add return types to closures (#9) 2022-02-21 13:37:49 +01:00
Jordi Boggiano
a16ed3d0ed
Add return types to private/internal methods 2022-02-18 11:22:01 +01:00
Jordi Boggiano
32852304d0
Make use of some new PHP features 2022-02-18 10:20:20 +01:00
Jordi Boggiano
86fb8d4412
Fix CS 2022-02-18 08:50:11 +01:00
Jordi Boggiano
45218092b4
Merge branch '2.2' into main 2022-02-15 16:52:03 +01:00
Stephan
23b0a3819b
ComposerRepository: fix array_keys(): Argument #1 () must be of type array, null given (#10529) 2022-02-09 11:45:10 +01:00
Jordi Boggiano
3446091027
Merge branch '2.2' into main 2022-02-04 16:31:14 +01:00
Florian Engelhardt
3d82719b70
Fix package search not urlencoding the input (#10500) 2022-02-04 10:23:10 +01:00
Markus Staab
6be6ce7d9f
update composer/pcre to 1.0.1 (#10496) 2022-02-02 21:35:37 +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
Jordi Boggiano
7e50f37b87
Remove some dead code and deprecate JsonFormatter, JsonFile::JSON_* constants, and TlsHelper 2022-01-04 11:15:33 +01:00
Jordi Boggiano
4e6d54b731
Fix all 5.3 $this-in-closure usages 2022-01-03 16:32:39 +01:00
Jordi Boggiano
cc32ebcabd
Search improvements (#10336)
* Search performance improvements, add SEARCH_VENDOR type, fixes #10326, fixes #10324, fixes #10325

* Add extra optimization path for autocompletion of ^foo/* whereas the vendor is fully known, refs #10320
2021-12-08 11:45:18 +01:00
Jordi Boggiano
24ce1eddbd
Add composer/pcre dependency and use it everywhere instead of preg_* 2021-12-07 12:37:19 +01:00
Jordi Boggiano
b42a897ebe
Fix var name 2021-12-04 13:41:16 +01:00
Jordi Boggiano
128a2648fb
Optimize name only search with preg_grep, refs #10326 2021-12-03 14:54:17 +01:00
Jordi Boggiano
7c8267f57c
Cache root packages.json, refs #10326 2021-12-03 14:49:41 +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
61b50cb7ec
Remove hack from ComposerRepository, fixes #9297 2021-11-13 13:25:25 +01:00
Jordi Boggiano
ba1814f306
Added retry behavior for certain http status and curl error codes (#10162) 2021-11-10 22:12:42 +01:00
Martin Herndl
5b47fa1896
Add back abandoned key in repository search results (#10259) 2021-11-08 10:27:45 +01:00
Jordi Boggiano
c65d09dff7
Fix @inheritDoc annotations 2021-10-27 16:18:53 +02:00
Martin Herndl
3645d3042c
Add types to root namespace (#10213) 2021-10-26 12:40:52 +02:00
Anatoly Pashin
b1a96a3141
PHPStan level 6 in src/Composer/Repository (#10197) 2021-10-25 12:58:31 +02:00