150 Commits (d1fa5d1edeb049585175577c5dea13da66d56cdf)

Author SHA1 Message Date
Jordi Boggiano d1fa5d1ede
Make eventName required if no $event is passed in 2 years ago
Jordi Boggiano 906692cd04
Allow null eventName in EventDispatcher::dispatch 2 years ago
Jordi Boggiano 0708eb45e5
Fix type error when PATH env is not set, fixes #10662 2 years ago
Jordi Boggiano 6a466a120a
Enable strict types on all files 2 years ago
Jordi Boggiano 89ce53250e
Final type additions 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
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 2 years ago
Jordi Boggiano a16ed3d0ed
Add return types to private/internal methods 2 years ago
Jordi Boggiano 32852304d0
Make use of some new PHP features 2 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
2 years ago
Jordi Boggiano 5805a68645
Fix some todos dropping support for older Symfony releases 2 years ago
Jordi Boggiano 71ab70d847
Disable files autoloading for scripts to avoid untrusted code execution at runtime (#10373) 2 years ago
Jordi Boggiano 24ce1eddbd
Add composer/pcre dependency and use it everywhere instead of preg_* 3 years ago
Jordi Boggiano f509c41280
Upgrade PHPStan to 1.0 (#10253)
Co-authored-by: Martin Herndl <martin@herndl.org>
3 years ago
Nicolas Grekas 0662fa2662
Fix loading files for plugins/scripts (#10279) 3 years ago
Jordi Boggiano bd4d624cc7
Read first from $_SERVER and $_ENV before using getenv (#10218) 3 years ago
Paolo Rossi a921d9b233
Reaching phpstan level 6 in EventDispatcher Exception and Installer folders (#10192) 3 years ago
Jordi Boggiano b209816056
Type annotations 3 years ago
Jordi Boggiano b45c8dea0a
Cleanups 3 years ago
Nicolas Grekas eac069bf36
Fix --no-scripts disabling events for plugins 3 years ago
Jordi Boggiano cbd1e3c2af
Fix undefined index access when using "@php <absolute path>" in script handler, fixes #9943 3 years ago
Jordi Boggiano 91dd175f74
Fix env var handling when variables_order includes E and symfony/console 3.3.15+ is used, fixes #9930 3 years ago
Jordi Boggiano 0021758e0b
Merge branch '2.0' 3 years ago
Jordi Boggiano d56387edb7
Also handle throwable on supported php versions 3 years ago
Jordi Boggiano 7b77161b7e
Merge branch '2.0' 3 years ago
Jordi Boggiano 37f4f531d0
Avoid leaving the event stack in a dirty state if an event listener throws, fixes #9846 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 bcd862c3dc
Add support for @php <abs path to binary from PATH>, fixes #9726 3 years ago
Jordi Boggiano 7c910e6bfa
Revert autoload order fix, force bundled dependencies to be used over local dependencies, fixes #9721, fixes #9717 3 years ago
Jordi Boggiano 2597e195ef
Merge remote-tracking branch 'Sweetchuck/i9703-event-dispatcher-last-winner' 3 years ago
Jordi Boggiano d855986c39
Also allow backslashes to work on cmd.exe for plain executable paths, fixes #9707 3 years ago
Jordi Boggiano 057006da4f
Make sure @php path/to/bla gets executed as php path\to\bla on windows, fixes #6968 3 years ago
Jordi Boggiano 8f7597da22
Use a different way to suppress output than changing output verbosity in exec command, fixes #9711 3 years ago
Dávid Andor 360966dcdf EventDispatcher uses only the return value of the last one listener, refs #9703 3 years ago
Jordi Boggiano d4073a40f9
Prepend runtime-autoloaders so that dependencies get loaded over Composer bundled packages
As Composer is generally compatible with newer versions of Symfony than the bundled ones, this should
not be a problem if dependencies are shared, and it ensures that the most relevant code gets loaded.
3 years ago
Jordi Boggiano 125f8a3319
Merge branch '1.10' 3 years ago
Jordi Boggiano 2cb9630320
Fix $_SERVER var not being updated when using putenv, refs b80038804f and fixes #9372 3 years ago
Jordi Boggiano b7d770659b
CS fixes 4 years ago
Jordi Boggiano 24abd233ec
Merge branch 'master' into code-improvements 4 years ago
Jordi Boggiano 3c25d180e6
Add detailed notes about events in upgrade guide, add COMPOSER_DEBUG_EVENTS env var for debugging events 4 years ago
Simon Berger 33d7a64df9 Removed unused private functions 4 years ago
Simon Berger bae227ec2d Changed all substr calls used to compare fragments of text to strpos
Some additional code cleanups in those classes

Reverted change causing issues
4 years ago
Jordi Boggiano a4a617abb4
Reduce amount of Filesystem/ProcessExecutor instantiations, add lots of docblocks 4 years ago
Jordi Boggiano acf2b15982
Merge branch '1.10' 4 years ago
azjezz 30f994e424 fix deprecations in PHP 8 4 years ago
Jordi Boggiano 86cfbdc541
Merge branch '1.10' 4 years ago
Jordi Boggiano 2f7e901940
Fix #8748 in an alternative way to avoid messing with PATH for other binaries, fixes #8758 4 years ago
Jordi Boggiano 8e664a37f5
Merge branch '1.10' 4 years ago
Jordi Boggiano b79f2b5e0f
Make sure scripts calling composer call the correct composer binary even if the project requires composer/composer, fixes #8748 4 years ago