Jordi Boggiano
6a466a120a
Enable strict types on all files
3 years ago
Jordi Boggiano
7abc8da7d3
Add more types
3 years ago
Jordi Boggiano
6da38f83a0
Add parameter types to all the things
3 years ago
Alexander Schranz
e9b60580f5
Add return types to tests ( #10 )
3 years ago
Jordi Boggiano
a16ed3d0ed
Add return types to private/internal methods
3 years ago
Jordi Boggiano
abdc6893a6
Add void types where no return statement is present
3 years ago
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
3 years ago
Jordi Boggiano
bab974575c
Merge branch '2.2' into main
3 years ago
Jordi Boggiano
e3d99cac59
Fix phpstan issues, update baseline and pin PHPStan version in 2.2 branch ( #10474 )
3 years ago
Jordi Boggiano
96486d81cb
Fix many PHPStan issues and update baseline
3 years ago
Jordi Boggiano
6ed3aeb343
Remove setExpectedException wrapper
3 years ago
Jordi Boggiano
ffd62795bc
Get rid of all the ->at() mock invocations
3 years ago
Jordi Boggiano
2a771dfb2d
Update PHPUnit to 8.5
3 years ago
Jordi Boggiano
226689b90c
Fix plugin autoloading including files autoload rules from the root package, fixes #10382 ( #10386 )
3 years ago
Jordi Boggiano
a3e91b5be6
Add allow-plugins config value ( #10314 )
...
Fixes #5659
- Automatically switch off plugins by default in July 2022
- reword hash into object in schema
Co-authored-by: Nils Adermann <naderman@naderman.de>
3 years ago
Jordi Boggiano
cb0293cf30
Finalize phpstan level 6 for tests dir, closes #10159
3 years ago
Jordi Boggiano
44b69ba77f
Upgrade php-cs-fixer to 3.x and fix CS
3 years ago
jakobvibe
1ba1463013
Added types to plugin test ( #10231 )
...
Co-authored-by: Jakob Vibe <jv@ipw.dk>
3 years ago
Martin Herndl
aa4c2ab63c
Add types to `Plugin` ( #10194 )
3 years ago
Jordi Boggiano
97fe881af4
Add some docblocks
3 years ago
Jordi Boggiano
d3c176ec69
PHPStan Level 5 ( #10070 )
...
* Bump PHPStan to level 5
* Update seld/phar-utils to latest
* Add phpstan-setup / phpstan scripts
3 years ago
Jordi Boggiano
d75d79b452
Merge pull request #9822 from phenaproxima/post-file-download
...
Fire POST_FILE_DOWNLOAD event for metadata fetched by ComposerRepository
4 years ago
Jordi Boggiano
7dd95a768b
Clean stuff up and deprecate old usages for PostFileDownloadEvent
4 years ago
Jordi Boggiano
4940009f83
Bump phpstan to level 3 ( #9734 )
...
Clean up PackageInterface/CompletePackageInterface, add missing methods, type things in solver as BasePackage, added CompleteAliasPackage, ..
4 years ago
Jordi Boggiano
d94e638461
Fix tests and edge case
4 years ago
Jordi Boggiano
b7d770659b
CS fixes
4 years ago
Jordi Boggiano
1593b67230
Fix warnings on higher phpunit versions
4 years ago
Jordi Boggiano
c5c6d44a0b
Refactor away some unnecessary RepositorySet usages
5 years ago
Jordi Boggiano
45ecbae8f5
Merge branch 'master' into 2.0
5 years ago
Ion Bazan
db32d6bc18
do not use env
5 years ago
Jordi Boggiano
3fc9ede24b
Add plugin callbacks for deactivation and uninstall, fixes #3000
6 years ago
Jordi Boggiano
3dfcae99a9
Add parallel download capability to FileDownloader and derivatives
6 years ago
Jordi Boggiano
2e0f31106a
Merge remote-tracking branch 'origin/master' into 2.0
6 years ago
Gabriel Caruso
2a13bb2649
Fixes from PHPStan ( #7687 )
...
* fix docblocks
* remove redundant conditional
* fix wrong variable name
* fix wrong namespaces
* add missing private members
* remove unused/redundant arguments
* move testcase class
* exclude TestCase.php
* Tweak RuleWatchGraph type hints
* Tweak doc comment
6 years ago
Nils Adermann
1228bcdffc
Internalize pool creation in repository set, store root aliases in set
...
The pool is still exposed too early in a few places which will require
further refactoring
6 years ago
Nils Adermann
6ef65e5319
Add a new RepositorySet class and restrict pool usage to the solver
...
Breaking change for the plugin interface so bumping the version of
composer-plugin-api to 2.0.0
First step for a refactoring of the package metadata loading mechanism
6 years ago
Jordi Boggiano
066351c5b9
Remove use of deprecated getMock method
7 years ago
Jordi Boggiano
122e422682
CS fixes
8 years ago
Michele Locati
097003b5bb
Add test case for strict types declaration
8 years ago
Jordi Boggiano
b9bd021516
Fix test suite on <7
9 years ago
Jordi Boggiano
ba909d8795
Avoid duplicate commands, and pass plugin to ctor args for capabilities, refs #3377
9 years ago
Jordi Boggiano
090295dbcb
Adjust the CommandProvider to use plugin capabilities and test actual command creation, refs #3377
9 years ago
Jordi Boggiano
a9df4acd7d
Merge remote-tracking branch 'jderusse/plugin-with-commands'
9 years ago
Jordi Boggiano
1818b95149
CS fixes
9 years ago
Jordi Boggiano
783e0aec8a
Merge remote-tracking branch 'alcohol/unique-test-directories'
9 years ago
Rob Bast
adf3b956d0
try to use unique test directories
...
any tests that use the filesystem should have their own unique directory, as we run our test suite in parallel and
cleanup of tests (removing directories) should not interfere with currently running tests
9 years ago
Jordi Boggiano
837fa805ec
Code tweaks, refs #4124
9 years ago
nevvermind
aa45a48283
Refactoring
...
- changed "SPI" into something more familiar, like "implementation"
- throw exceptions on invalid implementation types or invalid class names
- use null instead of false when querying
- refactored the tests accordingly
9 years ago
nevvermind
681043355f
Update test fixtures + fix test
9 years ago
nevvermind
58ded13eb9
Fix tests breaking on a api version bump
...
Make generic plugins work with many API versions as opposed to just 1.0.0.
9 years ago