fix null argument

This commit is contained in:
Jean-Christian Denis 2023-05-13 16:58:12 +02:00
parent 8de871cbd2
commit c9d8a62eaa
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
3 changed files with 4 additions and 4 deletions

View file

@ -18,7 +18,7 @@ $this->registerModule(
'Enhance post content',
'Add features to words in post content',
'Jean-Christian Denis and Contributors',
'2023.05.13',
'2023.05.13.1',
[
'requires' => [
['php', '8.1'],

View file

@ -2,10 +2,10 @@
<modules xmlns:da="http://dotaddict.org/da/">
<module id="enhancePostContent">
<name>Enhance post content</name>
<version>2023.05.13</version>
<version>2023.05.13.1</version>
<author>Jean-Christian Denis and Contributors</author>
<desc>Add features to words in post content</desc>
<file>https://github.com/JcDenis/enhancePostContent/releases/download/v2023.05.13/plugin-enhancePostContent.zip</file>
<file>https://github.com/JcDenis/enhancePostContent/releases/download/v2023.05.13.1/plugin-enhancePostContent.zip</file>
<da:dcmin>2.26</da:dcmin>
<da:details>https://plugins.dotaddict.org/dc2/details/enhancePostContent</da:details>
<da:support>https://github.com/JcDenis/enhancePostContent</da:support>

View file

@ -45,7 +45,7 @@ class Prepend extends dcNsProcess
'epccss',
'epc.css',
'^epc\.css',
function (string $args): void {
function (?string $args): void {
$css = [];
foreach (Epc::getFilters()->dump() as $filter) {
if ('' == $filter->class || '' == $filter->style) {