51 Commits (06ef742a6608d61cb5769d0754c76abac194fc40)

Author SHA1 Message Date
Jordi Boggiano 06ef742a66
Update phpstan, fix InstalledVersions key ordering to be more logical/consistent 2 years ago
Jordi Boggiano 8e93566c18
Validate config schema before loading it, fixes #10685 2 years ago
Jordi Boggiano 6a466a120a
Enable strict types on all files 2 years ago
Jordi Boggiano 6da38f83a0
Add parameter types to all the things 2 years ago
Jordi Boggiano abdc6893a6
Add void types where no return statement is present 2 years ago
Jordi Boggiano 86fb8d4412
Fix CS 2 years ago
Jordi Boggiano 7e50f37b87
Remove some dead code and deprecate JsonFormatter, JsonFile::JSON_* constants, and TlsHelper 2 years ago
Niels Vanpachtenbeke 1c928466a9
Remove code blocks for php <7.2 compatibility (#10417) 2 years ago
Jordi Boggiano ccd87c479c
Test fixes 2 years ago
Jordi Boggiano 44b69ba77f
Upgrade php-cs-fixer to 3.x and fix CS 3 years ago
jakobvibe f667c7b8de
Add types to tests/composer/test/json (#10222)
Co-authored-by: Jakob Vibe <jv@ipw.dk>
3 years ago
adlacruzes 7366b8e362 Fix JsonFile when using custom json schema with no "name" and "description" properties 3 years ago
Guilliam Xavier 393c9a5946 Add more tests 3 years ago
Guilliam Xavier 2d21dd675a Invert strict/lax schema validation 3 years ago
Jordi Boggiano 1593b67230
Fix warnings on higher phpunit versions 4 years ago
Ion Bazan a2137d5263 use Symfony PHPUnit Bridge 4 years ago
Gabriel Caruso afc9a7643e Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase 7 years ago
Remi Collet a6c6537529 skip no more needed with jsonc 1.3.9 9 years ago
Remi Collet c014e0882f ignore this test with 'jsonc' 9 years ago
Jordi Boggiano 27aac31970 Fix tests for autocrlf=true checkouts, fixes #4049 9 years ago
Possum 29ca21f30e PHP version checks tweaking 9 years ago
Possum d7f7418243 some more test failure details 9 years ago
Jordi Boggiano 00ca2a91a3 Fix typo 9 years ago
Jordi Boggiano a5dfaafa02 Add a fixture for the schema validation 9 years ago
Jordi Boggiano 94926218e8 CS fixes 10 years ago
Jordi Boggiano 109f4ffd5e Normalize json across all php versions, fixes #3226 10 years ago
Jordi Boggiano ed54e8346d Fix json test, fixes #3326 10 years ago
Jordi Boggiano 8881cec174 Simplify version ranges (hopefully includes hhvm), refs #3049 10 years ago
Jordi Boggiano 3874a11238 Update json test 10 years ago
Sandy Pleyte 3a2815b778 Added extra unit test from the example in the ticket. 10 years ago
Sandy Pleyte f92f2f45a9 Fix for #2613, when using php < 5.4 there was an unnecessary backslash before each utf-8 char. The problem was that the regexp matched all utf-8 encoded chars (included the ones that where escaped). The new regexp uses the lookbehind feature to check if the backslash isn't prefixed with an other backslash. 10 years ago
Sandy Pleyte 7a902ed96d Fix for #2613, when using php < 5.4 there was an unnecessary backslash before each utf-8 char. The problem was that the regexp matched all utf-8 encoded chars (included the ones that where escaped). The new regexp uses the lookbehind feature to check if the backslash isn't prefixed with an other backslash. 10 years ago
Jordi Boggiano e348642aa7 Fix json manipulator handling of escaped backslashes, fixes #1588 11 years ago
Jordi Boggiano 521bbe6556 CS fixes 12 years ago
Jordi Boggiano db16f68fbf Tweak exception messages 12 years ago
Robert Schönthal e96e06946f fixed json file tests 12 years ago
Robert Schönthal c517ac6404 fixed issue #347 added file to json validation exception 12 years ago
Jordi Boggiano a30e6109bf Fix 5.4.0 interop in formatting of empty array/objects 12 years ago
Martin Hasoň 947d429c61 Removed definition of global constants reserved for PHP >=5.4 and fixed tests 12 years ago
Jordi Boggiano bd54e43d37 Rework JsonFile API slightly, avoid tokenizing in php if the syntax is valid 12 years ago
digitalkaoz 6929c42848 added schema/syntax validation for composer.json 12 years ago
Volker Dusch 9ede082371 Skip tests if mbstring is not installed 12 years ago
Martin Hasoň e621495c4d Added support for JSON_UNESCAPED_SLASHES 12 years ago
Martin Hasoň ff0f833b3e Added support for JSON_UNESCAPED_UNICODE and fixed parsing string 12 years ago
Martin Hasoň 76a2be5ae0 Fixed detection of missing comma and added detection of missing colon in json 12 years ago
Jakub Zalas c680ec7e51 Fixed json encoding when quoted value contained trailing backslash.
Condition checking if current character is inside a quoted string did not consider the case when backslash before quote is escaped with another backslash.
13 years ago
Justin Rainbow 447230d77a Extracting JsonFile additions for prettifying JSON 13 years ago
Jordi Boggiano b7f6cf69ab Add tests and fixes some issues 13 years ago
Jordi Boggiano 066a0db752 Add detection for unescaped backslashes 13 years ago
Jordi Boggiano f5aa3e6c79 Add detection for extra commas in arrays 13 years ago