Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed Jun 5, 2024
1 parent 1923973 commit 2677017
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@
"ext-json": "*",
"ext-libxml": "*",
"php-di/invoker": "^2.3.4",
"php-di/php-di": "^7"
"php-di/php-di": "^7.0.6"
},
"require-dev": {
"captainhook/captainhook": "^5.10",
"dealerdirect/phpcodesniffer-composer-installer": "^v1.0.0",
"infinum/eightshift-coding-standards": "2.0.0-beta",
"php-parallel-lint/php-parallel-lint": "^1.3",
"php-stubs/wordpress-stubs": "^6.3",
"captainhook/captainhook": "^5.23.0",
"dealerdirect/phpcodesniffer-composer-installer": "v1.0.0",
"infinum/eightshift-coding-standards": "^3.0.0",
"php-parallel-lint/php-parallel-lint": "^v1.4.0",
"php-stubs/wordpress-stubs": "^v6.5.3",
"roave/security-advisories": "dev-master",
"szepeviktor/phpstan-wordpress": "^1.3",
"wp-cli/wp-cli": "^2.9"
"szepeviktor/phpstan-wordpress": "^v1.3.4",
"wp-cli/wp-cli": "^v2.10.0"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<exclude-pattern>*/src/Init/plugin/</exclude-pattern>
</rule>

<rule ref="Eightshift.Security.ComponentsEscape.OutputNotEscaped">
<rule ref="Eightshift.Security.HelpersEscape.OutputNotEscaped">
<exclude-pattern>*/src/*/*Example.php</exclude-pattern>
<exclude-pattern>*/src/Init/theme/</exclude-pattern>
<exclude-pattern>*/src/Init/plugin/</exclude-pattern>
Expand All @@ -90,7 +90,7 @@
</rule>

<!-- Ignore unescaped exceptions. All Eightshift exceptions are escaped. -->
<rule ref="Eightshift.Security.ComponentsEscape.ExceptionNotEscaped">
<rule ref="Eightshift.Security.HelpersEscape.ExceptionNotEscaped">
<severity>0</severity>
</rule>

Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ parameters:
ignoreErrors:
# Ignore errors about reflection class variable being undefined. Errors are caught.
- '/^Variable \$reflectionClass might not be defined\.$/'
checkGenericClassInNonGenericObjectType: false
- identifier: missingType.generics
4 changes: 2 additions & 2 deletions src/Blocks/AbstractBlocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public function render(array $attributes, string $innerBlockContent): string

// Get block wrapper view path.
if (Helpers::getConfigUseWrapper()) {
return Helpers::render( // phpcs:ignore Eightshift.Security.ComponentsEscape.OutputNotEscaped
return Helpers::render(
'wrapper',
$attributes,
'wrapper',
Expand All @@ -212,7 +212,7 @@ public function render(array $attributes, string $innerBlockContent): string
);
}

return $blockOutpout; // phpcs:ignore Eightshift.Security.ComponentsEscape.OutputNotEscaped
return $blockOutpout;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Cli/CliHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static function cliError(string $errorMessage): void
// @codeCoverageIgnoreStart
// Cannot test the exit.
} catch (ExitException $e) {
exit("{$e->getCode()}: {$e->getMessage()}"); // phpcs:ignore Eightshift.Security.ComponentsEscape.OutputNotEscaped
exit("{$e->getCode()}: {$e->getMessage()}"); // phpcs:ignore Eightshift.Security.HelpersEscape.OutputNotEscaped
// @codeCoverageIgnoreEnd
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Db/ExportCli.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function __invoke(array $args, array $assocArgs)
Helpers::getProjectPaths('projectRoot')
);
} catch (ExitException $e) {
exit("{$e->getCode()}: {$e->getMessage()}"); // phpcs:ignore Eightshift.Security.ComponentsEscape.OutputNotEscaped
exit("{$e->getCode()}: {$e->getMessage()}"); // phpcs:ignore Eightshift.Security.HelpersEscape.OutputNotEscaped
}
}
}
2 changes: 1 addition & 1 deletion src/Db/ImportCli.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function __invoke(array $args, array $assocArgs)
)
);
} catch (ExitException $e) {
exit("{$e->getCode()}: {$e->getMessage()}"); // phpcs:ignore Eightshift.Security.ComponentsEscape.OutputNotEscaped
exit("{$e->getCode()}: {$e->getMessage()}"); // phpcs:ignore Eightshift.Security.HelpersEscape.OutputNotEscaped
}
}
}

0 comments on commit 2677017

Please sign in to comment.