72 Commits (f509c41280768b1d3047271ec5b50da33184d98d)

Author SHA1 Message Date
Jordi Boggiano f509c41280
Upgrade PHPStan to 1.0 (#10253)
Co-authored-by: Martin Herndl <martin@herndl.org>
3 years ago
Jordi Boggiano bd4d624cc7
Read first from $_SERVER and $_ENV before using getenv (#10218) 3 years ago
Jordi Boggiano 024f0eda53
Add a bunch of type info to Util namespace 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 9ba042ded8
Add Platform-PHP version to user-agent header to improve targetted-php stats (#9873) 3 years ago
Jordi Boggiano 3380178798
Introduce a cross-platform safe version of is_readable to support UNC / wsl$ paths on Windows (#9861) 3 years ago
Jordi Boggiano 346356a4dd
Fix phpdoc 3 years ago
Jordi Boggiano 5d6f9b2528
Prefer @phpstan- annotations as that is what we run against 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
Jordi Boggiano 6937fedaa9
Update user-agent to use cURL instead of curl, fixes #9492 4 years ago
johnstevenson c99e19db64 Fix logic (again) 4 years ago
johnstevenson 2a913c7a68 Improve proxy error messages for streams 4 years ago
johnstevenson d47261eb93 Refactor proxy handling for Composer2 4 years ago
johnstevenson 8feb83b22b
Remove duplicate StreamContextFactory ssl options
Added in Dec 2014 (commit 8dad846), superseded in Jan 2016 (pr #4759)
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
Markus Staab 4e1dd4bfdf
added phpdocs in StreamContextFactory 4 years ago
Jordi Boggiano 5f988a34a6
Merge branch 'master' into 2.0 5 years ago
Jordi Boggiano 4271167495
Improve version reporting 5 years ago
CZechBoY a062cd1a31
added phpstan on level 0 5 years ago
Jordi Boggiano fd11cf3618 Port/extract most behavior of RemoteFilesystem to CurlDownloader 6 years ago
Jordi Boggiano 1cd9f4f9db Disable request_fulluri by default for HTTPS connections 6 years ago
Jordi Boggiano 56805ecafe Add HttpDownloader to wrap/replace RemoteFilesystem with a new curl multi implementation 6 years ago
Michele Locati 04098153c8 Add support for running composer with phpdbg (#7798) 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
Jordi Boggiano 1983a450b4 Use rawurldecode instead of urldecode, fixes #7407 6 years ago
Vladimir Reznichenko da9e00066c SCA: reduced repetitive methods references, used specialized PhpUnit assertions 7 years ago
croensch bd6168ef85 fix pull 6740
wrongly copied the check, either must be in not-empty
7 years ago
croensch 6da92e98ac also support NO_PROXY
since WINDOWS can only have one case and that is usually upperase
7 years ago
Vladimir Reznichenko c8615358cb SCA with PHP Inspections (EA Extended) 7 years ago
Jordi Boggiano d0e780a8eb Allow php_uname to be disabled, fixes composer/getcomposer.org#112 7 years ago
Jordi Boggiano 0f455be01c Add CI flag in UA header 8 years ago
Jordi Boggiano 3455380413 Patch Httpoxy vulnerability 8 years ago
Jordi Boggiano fc57cc8d7e Remove changes in StreamContextFactory, refs #5055 8 years ago
Paul.Wenke b4d9d0fd0d Added BitbucketTest class. Added is_array and is_object check to http content before calling http_build_query. 8 years ago
Paul Wenke d5332a1b5c Developed bitbucket-oauth functionality. 8 years ago
Jordi Boggiano fbab2bfa17 Move user agent definition to StreamContextFactory so it is available in all contexts 9 years ago
Jordi Boggiano ce08582671 Fix CS 9 years ago
Possum 29ca21f30e PHP version checks tweaking 9 years ago
Jordi Boggiano 8dad846613 Add SNI settings for SSL URLs that are proxied, fixes #3204 10 years ago
Jordi Boggiano 4a6503fe36 Add suppor for https_proxy, fixes #3204 10 years ago
Pascal Borreli 2f4df9d459 Fixed typos 11 years ago
Jordi Boggiano 08243ce2e3 Fix handling of urlencoded user and password in proxy urls, fixes #2339 11 years ago
Jordi Boggiano b4c0b18896 Add tests, refs #2017 11 years ago
Jordi Boggiano 13c7be2d7e Reformat some code and avoid adding proxy auth if no_proxy matched the url, refs #2017 11 years ago
radnan a55c9b6a88 added no_proxy handler - fixes #1318
- handle no_proxy directive when building stream context
- using CIDR matching from Zend library
- uses parts of code provided courtesy of @hoffman
11 years ago
Jordi Boggiano 1debe22412 Add HTTPS_PROXY_REQUEST_FULLURI to disable the request_fulluri only for https requests, fixes #1946, fixes #1839 11 years ago
Jordi Boggiano 8c197d2325 Fix CS and wording, remove lowercased env var, add env var to docs 11 years ago
Alexander Loutsenko b7e41de607 Workaround when your proxy server fails request with enabled http_proxy_request_fulluri HTTP parameter 11 years ago
Jordi Boggiano 9a69886a92 Add default http options to stream context, fixes #1774 11 years ago