Jordi Boggiano
6a466a120a
Enable strict types on all files
2 years ago
Jordi Boggiano
7abc8da7d3
Add more types
2 years ago
Jordi Boggiano
6da38f83a0
Add parameter types to all the things
2 years ago
Alexander Schranz
1321bfca36
Add return types to closures ( #9 )
2 years ago
Jordi Boggiano
eda9014bef
Add return types to all code which is not being extended by open source packages
2 years ago
Jordi Boggiano
a16ed3d0ed
Add return types to private/internal methods
2 years ago
Jordi Boggiano
4e6d54b731
Fix all 5.3 $this-in-closure usages
2 years ago
Jordi Boggiano
24ce1eddbd
Add composer/pcre dependency and use it everywhere instead of preg_*
2 years ago
Martin Herndl
fa4d4e20e9
Add types to `Downloader` ( #10193 )
3 years ago
Jordi Boggiano
b209816056
Type annotations
3 years ago
Jordi Boggiano
d6a8b0252d
Fix phpdoc
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
4940009f83
Bump phpstan to level 3 ( #9734 )
...
Clean up PackageInterface/CompletePackageInterface, add missing methods, type things in solver as BasePackage, added CompleteAliasPackage, ..
3 years ago
Jordi Boggiano
b7d770659b
CS fixes
4 years ago
Simon Berger
002fd39bc6
Removed passing of parameters with default value
4 years ago
Simon Berger
cda6e8bea6
Removed unnecessary property initialization or declaration
4 years ago
Jordi Boggiano
a4a617abb4
Reduce amount of Filesystem/ProcessExecutor instantiations, add lots of docblocks
4 years ago
Jordi Boggiano
02059d96e7
Fail early if an archive extraction is going to fail at install/update stage to avoid leaving the vendor dir in a half up to date state
4 years ago
Jérôme Tamarelle
bd34ff1328
Remove unused property $httpDownloader
4 years ago
Jordi Boggiano
8a83d5cc35
Fix create-project command
4 years ago
Jordi Boggiano
53d2ab2253
Split up steps on VCS downloaders to allow doing network operations before touching the filesystem on GitDownloader, fixes #7903
5 years ago
Matthew Brown
65903aacfd
Fix type issues ( #7996 )
...
* Fix type issues found by Psalm
5 years ago
Jordi Boggiano
549ccd8f79
Remote outputProgress concept from downloaders as it does not make sense when things happen in parallel, refs #7901
5 years ago
Jordi Boggiano
3dfcae99a9
Add parallel download capability to FileDownloader and derivatives
5 years ago
Jordi Boggiano
ff59bbdab0
CS fixer
6 years ago
Jordi Boggiano
a29ad2bfd6
Add some more debugging info
6 years ago
Jordi Boggiano
122e422682
CS fixes
7 years ago
Jordi Boggiano
0ed5b541a9
Fix CS
8 years ago
Jordi Boggiano
3c640e689e
Fix regex escaping and remove constants
8 years ago
Jordi Boggiano
06be9b88c2
Merge remote-tracking branch 'slbmeh/feature/gh-2787'
8 years ago
Jordi Boggiano
02952c3bdc
Add missing </error> tag, refs #4878
8 years ago
Jordi Boggiano
d347e1efca
Minor tweaks refs #4878
8 years ago
bogdan
e0fad1f55b
Implemented interactive user confirmation on source package update failure
...
Removed unnecessary options for installation
Removed unnecessary exception
8 years ago
bogdan
581ce91f90
Implemented new option (ignore-missing-metadata) for composer install command
...
The command allows to slightly change how repository updates are handled during install
In the previous version composer failed to updated if .git|.svn|.hg folder was missing from the package
In the current version, with the option enabled, if the update fails for exactly this reason,
it'll try to remove the package completely and install it from remote
8 years ago
Jordi Boggiano
ce08582671
Fix CS
9 years ago
Steve Buzonas
b44c3bee52
add tests to cover different use cases of package install preferences
9 years ago
Steve Buzonas
124739d055
fix preference resolution to be backwards compatible
9 years ago
Steve Buzonas
bf08b6eb90
add support for package based install type preferences
9 years ago
Rob Bast
cb336a5416
Implement writeError throughout Composer
9 years ago
Jordi Boggiano
3e1d0681d1
Merge pull request #3334 from NAYZO/master
...
minor fixes in DownloadManager.php
10 years ago
Jordi Boggiano
332a933e8b
Remove fallback on missing commit, fixes #3314 , fixes #3147
10 years ago
Ala Eddine Khefifi
7cea912d30
minor fixes in DownloadManager.php
...
We should use "===" instead of "==" since it's better and faster in this case.
10 years ago
François Pluchino
8b5c00bff0
Fix phpdoc
10 years ago
Jordi Boggiano
ac497feaba
CS fixes
10 years ago
Jordi Boggiano
665a2bd0c0
Tweak error message and make TransportException extend from RuntimeException, refs #2753
10 years ago
Nils Adermann
31fd6c233c
Rethrow download exceptions when no options left & clean up code
10 years ago
Nils Adermann
5ed18d9aa2
Fail over from source to dist and vice versa when downloads fail
...
Any RuntimeException descendent will be caught and cause another
download attempt using either source or dist depending on what was
attempted first.
10 years ago
Jordi Boggiano
e03057156c
CS fixes
10 years ago
Julius Beckmann
ed5da804dd
Fixed handling of Metapackages in DownloadManager.
...
The "getDownloaderForInstalledPackage" returns null for "metapackage" and the download(), update() and remove() methods did not handle this return value correctly.
10 years ago
Andrej Hudec
5b4a3f9e9f
List all available downloader types in exception message.
11 years ago