mirror of
https://github.com/FreshRSS/Extensions.git
synced 2026-11-04 10:48:40 +00:00
Bump phpstan/phpstan from 2.1.40 to 2.1.46 (#449)
* Bump phpstan/phpstan from 2.1.40 to 2.1.46 --- updated-dependencies: - dependency-name: phpstan/phpstan dependency-version: 2.1.46 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fix WordHighlighterExtension --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
This commit is contained in:
1 parent
49af1e2cbd
commit
973be8a46d
3 files changed
+9
-8
No files matched your search
Generated
+5
-5
@@ -9,11 +9,11 @@
|
||||
"packages-dev": [
|
||||
{
|
||||
"name": "phpstan/phpstan",
|
||||
"version": "2.1.40",
|
||||
"version": "2.1.46",
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/9b2c7aeb83a75d8680ea5e7c9b7fca88052b766b",
|
||||
"reference": "9b2c7aeb83a75d8680ea5e7c9b7fca88052b766b",
|
||||
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/a193923fc2d6325ef4e741cf3af8c3e8f54dbf25",
|
||||
"reference": "a193923fc2d6325ef4e741cf3af8c3e8f54dbf25",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -58,7 +58,7 @@
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2026-02-23T15:04:35+00:00"
|
||||
"time": "2026-04-01T09:25:14+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpstan/phpstan-deprecation-rules",
|
||||
@@ -275,5 +275,5 @@
|
||||
"ext-tokenizer": "*",
|
||||
"ext-xmlwriter": "*"
|
||||
},
|
||||
"plugin-api-version": "2.6.0"
|
||||
"plugin-api-version": "2.9.0"
|
||||
}
|
||||
@@ -63,7 +63,7 @@ final class WordHighlighterExtension extends Minz_Extension
|
||||
'enable_logs' => $this->enable_logs,
|
||||
'case_sensitive' => $this->case_sensitive,
|
||||
'separate_word_search' => $this->separate_word_search,
|
||||
'words' => preg_split("/\r\n|\n|\r/", $configWordList),
|
||||
'words' => preg_split("/\r\n|\n|\r/", $configWordList) ?: [],
|
||||
];
|
||||
$configJson = json_encode($configObj, WordHighlighterExtension::JSON_ENCODE_CONF);
|
||||
file_put_contents(join_path($staticPath, ('config.' . $current_user . '.json')), $configJson . PHP_EOL);
|
||||
@@ -80,7 +80,8 @@ final class WordHighlighterExtension extends Minz_Extension
|
||||
$this->enable_logs = (bool) ($confJson['enable_logs'] ?? false);
|
||||
$this->case_sensitive = (bool) ($confJson['case_sensitive'] ?? false);
|
||||
$this->separate_word_search = (bool) ($confJson['separate_word_search'] ?? false);
|
||||
$this->word_highlighter_conf = implode("\n", (array) ($confJson['words'] ?? []));
|
||||
$words = is_array($confJson['words']) ? array_filter($confJson['words'], static fn($word) => is_string($word)) : [];
|
||||
$this->word_highlighter_conf = implode("\n", $words);
|
||||
} catch (Exception $exception) { // phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedCatch
|
||||
// probably nothing to do needed
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "Word highlighter",
|
||||
"author": "Lukas Melega",
|
||||
"description": "Highlight specific words",
|
||||
"version": "0.0.3",
|
||||
"version": "0.0.4",
|
||||
"entrypoint": "WordHighlighter",
|
||||
"type": "user"
|
||||
}
|
||||
Reference in new issue
Block a user