1
0
Fork 0
Commit Graph

7258 Commits (0ec0f203322683dcd138aa5a4f9565e774a02f1e)

Author SHA1 Message Date
Jordi Boggiano 28c34128ee
Fix php proxies to resolve __FILE__ and __DIR__ using realpath on PHP <8, fixes #10261 2021-11-08 15:03:05 +01:00
Jordi Boggiano 3bb78fd1ee
Make new phar filename random to avoid possible concurrency issues, refs #10252 2021-11-08 11:45:07 +01:00
Jordi Boggiano 6a7264fc2d
Trigger autoloading of a few classes before executing self-update command, fixes #10252 2021-11-08 11:45:06 +01:00
Matthias Pigulla 4c9e567c39
Provide different URL options to encourage users to create low-privilege GitHub tokens (#10256) 2021-11-08 10:52:22 +01:00
Jordi Boggiano 9f433aba76
Fix 9999999-dev showing on composer show when no branch alias is defined for the default branch, fixes #10260 2021-11-08 10:43:25 +01:00
Martin Herndl 5b47fa1896
Add back abandoned key in repository search results (#10259) 2021-11-08 10:27:45 +01:00
Markus Staab d7154c2a72
Fix GithubActionError on php 8.1 (#10250) 2021-11-02 14:39:04 +01:00
Markus Staab 6b62f98d3c
GithubActionError: escape more special chars (#10243) 2021-11-02 11:43:34 +01:00
Jordi Boggiano 90087b4fb3
Fix handling of php bin proxies combined with declare() on php <8, fixes #10246 (#10249) 2021-11-02 11:36:31 +01:00
Jordi Boggiano 3f243d37c3
Add temporary metadata for download size tracking 2021-10-29 22:19:38 +02:00
Jordi Boggiano 44b69ba77f
Upgrade php-cs-fixer to 3.x and fix CS 2021-10-27 16:21:45 +02:00
Jordi Boggiano c65d09dff7
Fix @inheritDoc annotations 2021-10-27 16:18:53 +02:00
Martin Herndl 2992e8651a
Add types to `Util` tests (#10228) 2021-10-27 16:18:46 +02:00
Samuel Felipe 3ccb54832b
PHPStan level 6 in src/Composer/Command (#10214) 2021-10-27 14:18:16 +02:00
Jordi Boggiano df6c2ce1db
Simplify php bin proxies further 2021-10-27 11:24:50 +02:00
Jordi Boggiano e1dbd65aff
Fix bin proxies to use output buffering instead of the eval hack, as the __FILE__ and __DIR__ replacement is not safe when done in strings/nowdocs/.. 2021-10-27 11:16:34 +02:00
Joseph Wynn 44a2aa9be4
Log when COMPOSER_AUTH environment variable is malformed, but do not throw an error. Fixes #10208. (#10209)
Co-authored-by: Joseph Wynn <joseph@wildlyinaccurate.com>
2021-10-27 09:40:20 +02:00
Cédric Anne a7686e82f0
Filter candidates requiring an unknown platform package; fixes #10167 (#10184) 2021-10-26 17:24:17 +02:00
Martin Herndl 3645d3042c
Add types to root namespace (#10213) 2021-10-26 12:40:52 +02:00
Martin Herndl f267b01852
Use single docblock for parameter types (#10212) 2021-10-25 21:42:03 +02:00
Martin Herndl bd8b39fe01
Add types to `Package` (#10210) 2021-10-25 13:45:09 +02:00
Jordi Boggiano 0e96f363e1
Remove redundancy in package type 2021-10-25 13:13:01 +02:00
Martin Herndl 13d433fad0
Add types to `Package/Loader` (#10206) 2021-10-25 13:08:05 +02:00
Anatoly Pashin b1a96a3141
PHPStan level 6 in src/Composer/Repository (#10197) 2021-10-25 12:58:31 +02:00
Martin Herndl 3fa7a6cb51
Add types to `Package/Version` (#10199) 2021-10-25 11:09:52 +02:00
Martin Herndl aa4c2ab63c
Add types to `Plugin` (#10194) 2021-10-25 11:02:54 +02:00
Paolo Rossi a921d9b233
Reaching phpstan level 6 in EventDispatcher Exception and Installer folders (#10192) 2021-10-25 10:44:29 +02:00
Martin Herndl fa4d4e20e9
Add types to `Downloader` (#10193) 2021-10-25 10:25:39 +02:00
pistej b99e21259c
phpstan level 6 in src/Composer/Package/Comparer (refs #10159) (#10196) 2021-10-20 22:20:33 +02:00
Martin Herndl db9e9a544e
Add types to `Package/Dumper` (#10198) 2021-10-20 22:19:53 +02:00
pistej dbd0ccaad8
phpstan level 6 in src/Composer/Package/Archiver (refs #10159) (#10195) 2021-10-20 21:54:38 +02:00
Nils Adermann cbc686c16a
Merge pull request #10185 from Seldaek/remove_unknown_rule_type
Remove unknown Rule type
2021-10-19 22:00:10 +02:00
Martin Herndl 995bf5a932
Add types to `Util` namespace, refs #10159 (#10190) 2021-10-19 14:35:37 +02:00
Stephan 261d93aacf
ComposerRepository: handle packages.json with null value for package (#10189) 2021-10-19 13:14:12 +02:00
Jordi Boggiano 37ce8969a4
Use real type hint instead of annotation 2021-10-19 13:11:04 +02:00
Martin Herndl f0cc9aeb01
Remove scalar parameter type declaration (#10186)
`string` can only be used in parameters starting from PHP 7.0.
2021-10-19 13:10:21 +02:00
Paolo Rossi 3add01a40b
PHPStan level 6 in src/Composer/Config (refs #10159) (#10182) 2021-10-18 23:51:43 +02:00
Jordi Boggiano 87f25e6df6
Specify parseAutoloads more narrowly, refs #10179 2021-10-18 23:49:57 +02:00
immeëmosol be25cf1d7a
Reaching phpstan level 6 in Composer/Autoload (refs #10159) (#10179)
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2021-10-18 23:40:22 +02:00
Jordi Boggiano 57e417b53a
Minor cleanup 2021-10-18 23:10:11 +02:00
Jordi Boggiano 75a8677e8a
Remove unknown Rule type 2021-10-18 23:05:31 +02:00
Paolo Rossi 6e04991489
Reaching phpstan level 6 in Composer/Console (refs #10159) (#10183) 2021-10-18 22:40:50 +02:00
Jordi Boggiano 7e1f4882af
Reorder some code 2021-10-18 22:37:40 +02:00
immeëmosol 50d738eeee
Reaching phpstan level 6 in Composer/DependencyResolver (refs #10159) (#10178) 2021-10-18 22:33:37 +02:00
Jordi Boggiano 04ab74bbef
Avoid checking for hhvm in a loop, refs #10170 2021-10-18 10:51:16 +02:00
Jordi Boggiano a6f1e803b1
Use more BasePackage instead of PackageInterface 2021-10-17 14:43:34 +02:00
Jordi Boggiano b209816056
Type annotations 2021-10-17 14:31:48 +02:00
pistej 98f1465610
Phpstan level 6 in Composer/Plaform and Composer/Script (#10159) (#10170) 2021-10-17 13:52:01 +02:00
Jordi Boggiano f25398f52c
Fix 2021-10-17 10:49:57 +02:00
Jordi Boggiano e137046558
Type annotations 2021-10-17 10:31:09 +02:00