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
3cdca37e85
Fix strict type issues
2022-02-24 13:24:25 +01:00
Jordi Boggiano
b85e0eebc1
Allow 3rd parties to use URL_REGEX
2022-02-24 11:17:46 +01:00
Jordi Boggiano
1e914f8afc
Merge pull request #10565 from Seldaek/add_const_visibility
...
Add visibility to all consts, fixes #10550
2022-02-23 14:43:28 +01:00
Jordi Boggiano
a8d687441a
Merge pull request #10562 from 94noni/patch-1
...
Update README.md
2022-02-23 14:37:10 +01:00
Jordi Boggiano
91a0a4c7d8
Also update requirements in docs
2022-02-23 14:33:14 +01:00
Jordi Boggiano
67a12f4829
Slightly more detailed PHP requirements
2022-02-23 14:28:17 +01:00
Jordi Boggiano
0db443ba5f
Add visibility to all consts, fixes #10550
2022-02-23 14:28:04 +01:00
Jordi Boggiano
b6c1afaa47
Merge pull request #10561 from Seldaek/add_param_types
...
Add more param/return types
2022-02-23 13:28:25 +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
7abc8da7d3
Add more types
2022-02-23 11:37:32 +01:00
Antoine Makdessi
2874daf59c
Update README.md
2022-02-22 22:32:58 +01:00
Jordi Boggiano
e52071a92c
Revert some return types for symfony/flex compatibility
2022-02-22 20:36:49 +01:00
Jordi Boggiano
225b4d7c27
Add some more return types
2022-02-22 19:29:40 +01:00
Jordi Boggiano
6da38f83a0
Add parameter types to all the things
2022-02-22 16:48:53 +01:00
Jordi Boggiano
c9baeda95b
Merge pull request #10547 from Seldaek/add_returns
...
Add native return types where possible
2022-02-21 13:57:32 +01:00
Jordi Boggiano
fb854df124
Update phpstan config
2022-02-21 13:49:26 +01:00
Alexander Schranz
e9b60580f5
Add return types to tests ( #10 )
2022-02-21 13:42:28 +01:00
Alexander Schranz
1321bfca36
Add return types to closures ( #9 )
2022-02-21 13:37:49 +01:00
kenedy akena
61ed47baba
Update 04-schema.md ( #10554 )
...
Fix grammar to make the sentence grammatically correct
2022-02-21 13:33:20 +01:00
Jordi Boggiano
868b75d5e8
Fix broken links, refs #10542
2022-02-19 12:52:00 +01:00
Sean McBride
7328f5e5db
Renamed the only file with a quote character to remove it ( #10542 )
...
The quote character can be problematic and as this is the only one, just removing it makes the codebase more compatible with other systems that forbid the character as a matter of policy.
2022-02-19 12:49:55 +01:00
Yanick Witschi
32da10dc2c
Improve the pool optimizer logging ( #10545 )
2022-02-19 12:47:35 +01:00
Jordi Boggiano
7b1fc4b2c8
Remove alias::getAliasOf return type as this is not compatible with PHP 7.2/7.3
2022-02-18 20:53:58 +01:00
Jordi Boggiano
84f0f19112
Split Composer into PartialComposer & Composer classes to avoid nullable properties on Composer for non-fully-loaded instances, add types to Composer\Factory
2022-02-18 14:45:08 +01:00
Jordi Boggiano
eda9014bef
Add return types to all code which is not being extended by open source packages
2022-02-18 14:32:38 +01:00
Jordi Boggiano
137ebddc25
Clean up useless mocks
2022-02-18 13:05:12 +01:00
Jordi Boggiano
a16ed3d0ed
Add return types to private/internal methods
2022-02-18 11:22:01 +01:00
Jordi Boggiano
abdc6893a6
Add void types where no return statement is present
2022-02-18 10:38:54 +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
2e40cdf2dc
Clean up properties that belong in PackageDiscoveryTrait
2022-02-18 08:26:59 +01:00
Jordi Boggiano
40de07569d
Merge branch '2.2' into main
2022-02-16 16:05:05 +01:00
Jordi Boggiano
7ee44e6461
Merge pull request #10541 from Seldaek/init_req_fixes
...
Fix issues in require/init when dealing with virtual packages which do not exist
2022-02-16 16:00:57 +01:00
Jordi Boggiano
2a2440c2a1
Fix handling of virtual packages when searching for packages or when looking up the preferred version (init & require command), refs #10489
2022-02-16 15:44:43 +01:00
Jordi Boggiano
8b5254688c
Drop early package name validation if a version is provided to require/init command, fixes #10489
2022-02-16 15:13:21 +01:00
Jordi Boggiano
acea849c51
Clarify plugin docs slightly wrt pre-operations-exec event
2022-02-16 14:58:24 +01:00
Jordi Boggiano
4376153912
Improve untrusted package install docs
2022-02-16 14:50:38 +01:00
sasezaki
0c4cefaaa1
Introduce phpstan-type about autoload array type to be DRY ( #10516 )
2022-02-16 14:34:10 +01:00
Jordi Boggiano
63b5f2737b
Merge branch '2.2' into main
2022-02-16 13:44:40 +01:00
Jordi Boggiano
53810b0cfb
Fix return type
2022-02-16 13:30:54 +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
28ec4fa7b0
Fix handling of invalid emails
2022-02-16 13:24:15 +01:00
Jordi Boggiano
f1ebc1d2b6
Fix init author support to make email optional, fixes #10538
2022-02-16 13:08:54 +01:00
Jordi Boggiano
6ea5b84bd9
Fix licenses command summary to count all licenses of a package
2022-02-16 12:26:49 +01:00
Marko H. Tamminen
8756f54da0
Handle missing license when showing license summary ( #10537 )
...
Fixes the issue of license summary command aborting when a package is
missing license information.
2022-02-16 12:17:49 +01:00
Jordi Boggiano
a3e6af54f9
Allow xdebug-handler 3.x, fixes #10528
2022-02-16 10:43:40 +01:00
Stephan
3eb12efae5
VcsRepositories: handle initialize with invalid repository URL ( #10525 )
2022-02-16 09:37:36 +01:00