Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d1fb4ab

Browse files
Added missing polyfill for JsonException
1 parent 57623b8 commit d1fb4ab

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This component provides functions added to PHP 7.3 core:
77
- [`array_key_last`](https://php.net/array_key_last)
88
- [`hrtime`](https://php.net/function.hrtime)
99
- [`is_countable`](https://php.net/is_countable)
10+
- [`JsonException`](https://php.net/JsonException)
1011

1112
More information can be found in the
1213
[main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md).

‎Resources/stubs/JsonException.php‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
class JsonException extends Exception
13+
{
14+
}

‎composer.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@
2020
},
2121
"autoload": {
2222
"psr-4": { "Symfony\\Polyfill\\Php73\\": "" },
23-
"files": [ "bootstrap.php" ]
23+
"files": [ "bootstrap.php" ],
24+
"classmap": [ "Resources/stubs" ]
2425
},
2526
"minimum-stability": "dev",
2627
"extra": {
2728
"branch-alias": {
28-
"dev-master": "1.9-dev"
29+
"dev-master": "1.11-dev"
2930
}
3031
}
3132
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /