Skip to content

Commit

Permalink
Bump phpstan/phpstan from 1.12.5 to 1.12.6 (#767)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Markus Staab <[email protected]>
  • Loading branch information
dependabot[bot] and staabm authored Oct 6, 2024
1 parent 6c48911 commit 8e25769
Show file tree
Hide file tree
Showing 13 changed files with 64 additions and 95 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"php": ">=7.4",
"justinrainbow/json-schema": "^5.3",
"php-parallel-lint/php-parallel-lint": "1.4",
"phpstan/phpstan": "1.12.5",
"phpstan/phpstan": "1.12.6",
"phpstan/phpstan-deprecation-rules": "1.2.1",
"phpstan/phpstan-phpunit": "1.4.0",
"phpstan/phpstan-strict-rules": "1.6.1",
Expand Down
26 changes: 13 additions & 13 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions vendor/bin/neon-lint
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,8 @@ if (PHP_VERSION_ID < 80000) {
(function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
|| (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
) {
include("phpvfscomposer://" . __DIR__ . '/..'.'/nette/neon/bin/neon-lint');
exit(0);
return include("phpvfscomposer://" . __DIR__ . '/..'.'/nette/neon/bin/neon-lint');
}
}

include __DIR__ . '/..'.'/nette/neon/bin/neon-lint';
return include __DIR__ . '/..'.'/nette/neon/bin/neon-lint';
28 changes: 14 additions & 14 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -733,29 +733,29 @@
},
{
"name": "nette/neon",
"version": "v3.3.3",
"version_normalized": "3.3.3.0",
"version": "v3.3.4",
"version_normalized": "3.3.4.0",
"source": {
"type": "git",
"url": "https://github.com/nette/neon.git",
"reference": "22e384da162fab42961d48eb06c06d3ad0c11b95"
"reference": "bb88bf3a54dd21bf4dbddb5cd525d7b0c61b7cda"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nette/neon/zipball/22e384da162fab42961d48eb06c06d3ad0c11b95",
"reference": "22e384da162fab42961d48eb06c06d3ad0c11b95",
"url": "https://api.github.com/repos/nette/neon/zipball/bb88bf3a54dd21bf4dbddb5cd525d7b0c61b7cda",
"reference": "bb88bf3a54dd21bf4dbddb5cd525d7b0c61b7cda",
"shasum": ""
},
"require": {
"ext-json": "*",
"php": ">=7.1"
"php": "7.1 - 8.4"
},
"require-dev": {
"nette/tester": "^2.0",
"phpstan/phpstan": "^0.12",
"tracy/tracy": "^2.7"
},
"time": "2022-03-10T02:04:26+00:00",
"time": "2024-10-04T22:17:24+00:00",
"bin": [
"bin/neon-lint"
],
Expand Down Expand Up @@ -798,7 +798,7 @@
],
"support": {
"issues": "https://github.com/nette/neon/issues",
"source": "https://github.com/nette/neon/tree/v3.3.3"
"source": "https://github.com/nette/neon/tree/v3.3.4"
},
"install-path": "../nette/neon"
},
Expand Down Expand Up @@ -1021,17 +1021,17 @@
},
{
"name": "phpstan/phpstan",
"version": "1.12.5",
"version_normalized": "1.12.5.0",
"version": "1.12.6",
"version_normalized": "1.12.6.0",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
"reference": "7e6c6cb7cecb0a6254009a1a8a7d54ec99812b17"
"reference": "dc4d2f145a88ea7141ae698effd64d9df46527ae"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/7e6c6cb7cecb0a6254009a1a8a7d54ec99812b17",
"reference": "7e6c6cb7cecb0a6254009a1a8a7d54ec99812b17",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/dc4d2f145a88ea7141ae698effd64d9df46527ae",
"reference": "dc4d2f145a88ea7141ae698effd64d9df46527ae",
"shasum": ""
},
"require": {
Expand All @@ -1040,7 +1040,7 @@
"conflict": {
"phpstan/phpstan-shim": "*"
},
"time": "2024-09-26T12:45:22+00:00",
"time": "2024-10-06T15:03:59+00:00",
"bin": [
"phpstan",
"phpstan.phar"
Expand Down
16 changes: 8 additions & 8 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => '__root__',
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '470a106921fccdc2d0340f30e9b07ca7608dac2d',
'reference' => '591e1dd6d35f7e6cabad238c99e1f79c2d2d4fe7',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -13,7 +13,7 @@
'__root__' => array(
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '470a106921fccdc2d0340f30e9b07ca7608dac2d',
'reference' => '591e1dd6d35f7e6cabad238c99e1f79c2d2d4fe7',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down Expand Up @@ -113,9 +113,9 @@
'dev_requirement' => false,
),
'nette/neon' => array(
'pretty_version' => 'v3.3.3',
'version' => '3.3.3.0',
'reference' => '22e384da162fab42961d48eb06c06d3ad0c11b95',
'pretty_version' => 'v3.3.4',
'version' => '3.3.4.0',
'reference' => 'bb88bf3a54dd21bf4dbddb5cd525d7b0c61b7cda',
'type' => 'library',
'install_path' => __DIR__ . '/../nette/neon',
'aliases' => array(),
Expand Down Expand Up @@ -149,9 +149,9 @@
'dev_requirement' => false,
),
'phpstan/phpstan' => array(
'pretty_version' => '1.12.5',
'version' => '1.12.5.0',
'reference' => '7e6c6cb7cecb0a6254009a1a8a7d54ec99812b17',
'pretty_version' => '1.12.6',
'version' => '1.12.6.0',
'reference' => 'dc4d2f145a88ea7141ae698effd64d9df46527ae',
'type' => 'library',
'install_path' => __DIR__ . '/../phpstan/phpstan',
'aliases' => array(),
Expand Down
2 changes: 1 addition & 1 deletion vendor/nette/neon/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
],
"require": {
"php": ">=7.1",
"php": "7.1 - 8.4",
"ext-json": "*"
},
"require-dev": {
Expand Down
33 changes: 0 additions & 33 deletions vendor/nette/neon/contributing.md

This file was deleted.

2 changes: 1 addition & 1 deletion vendor/nette/neon/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Install via Composer:
composer require nette/neon
```

It requires PHP version 7.1 and supports PHP up to 8.1. Documentation can be found on the [website](https://doc.nette.org/neon).
It requires PHP version 7.1 up to 8.4. Documentation can be found on the [website](https://doc.nette.org/neon).

`Neon::encode()` returns `$value` converted to NEON. As the second parameter `$blockMode` you can pass true, which will create multiline output. The third parameter `$indentation` specifies the characters used for indentation (default is tab).

Expand Down
7 changes: 4 additions & 3 deletions vendor/nette/neon/src/Neon/Neon.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ public static function decode(string $input)
*/
public static function decodeFile(string $file)
{
if (!is_file($file)) {
throw new Exception("File '$file' does not exist.");
$input = @file_get_contents($file); // @ is escalated to exception
if ($input === false) {
$error = preg_replace('#^\w+\(.*?\): #', '', error_get_last()['message'] ?? '');
throw new Exception("Unable to read file '$file'. $error");
}

$input = file_get_contents($file);
if (substr($input, 0, 3) === "\u{FEFF}") { // BOM
$input = substr($input, 3);
}
Expand Down
10 changes: 6 additions & 4 deletions vendor/nette/neon/src/Neon/Node/StringNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,18 @@ function (array $m): string {
public function toString(): string
{
if (strpos($this->value, "\n") === false) {
return "'" . str_replace("'", "''", $this->value) . "'";
return preg_match('~[\x00-\x08\x0B-\x1F]~', $this->value)
? json_encode($this->value, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)
: "'" . str_replace("'", "''", $this->value) . "'";

} elseif (preg_match('~\n[\t ]+\'{3}~', $this->value)) {
$s = json_encode($this->value, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
} elseif (preg_match('~[\x00-\x08\x0B-\x1F]|\n[\t ]+\'{3}~', $this->value)) {
$s = substr(json_encode($this->value, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES), 1, -1);
$s = preg_replace_callback(
'#[^\\\\]|\\\\(.)#s',
function ($m) {
return ['n' => "\n", 't' => "\t", '"' => '"'][$m[1] ?? ''] ?? $m[0];
},
substr($s, 1, -1)
$s
);
$s = str_replace('"""', '""\"', $s);
$delim = '"""';
Expand Down
2 changes: 1 addition & 1 deletion vendor/nette/neon/src/Neon/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ private function checkArrayKey(Node $key, array &$arr): void
}


private function injectPos(Node $node, int $start = null, int $end = null): Node
private function injectPos(Node $node, ?int $start = null, ?int $end = null): Node
{
$node->startTokenPos = $start ?? $this->tokens->getPos();
$node->startLine = $this->posToLine[$node->startTokenPos];
Expand Down
Binary file modified vendor/phpstan/phpstan/phpstan.phar
Binary file not shown.
26 changes: 13 additions & 13 deletions vendor/phpstan/phpstan/phpstan.phar.asc
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEynwsejDI6OEnSoR2UcZzBf/C5cAFAmb1V0gACgkQUcZzBf/C
5cBoFg/8CSNvVpvksAjqyOOLjVfCZ8JvJv+CGjsRQD7BWPi61T/Ef+A74U1M2Qf+
F6j9SKbfnQ+g7jHewzRtziCmElNUip74iKee7268L9nSb0gDikwMgbBIoK7V3KX2
9wa9P/3OdEyhKjRJtkB3E4mRXJ6MnWlDMi7xDEmh9lJPWSTELs4OAaLIL2tGA6JP
fRSPRmOpqcU5lbHho6wOc+KFjdvfAMqy5k1TsVY7ulibFAolsPuwatAn3Yhods/P
hKgupNBtGsFW79QIuapatuhxzU6SF1Xdd3WUG4q0C5gQRoNXysNBYkF3zLNaYx24
XAMiEykfexGEkJrVoXUf9xdFXdGGtFNqkKViWjqtatgJhF4OjaIXXFK0utj8tDzp
Y5FgcTXAwn8X4K8OIoNoxaZ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