Skip to content

Commit 8af3910

Browse files
chore: bump @prettier/plugin-php from 0.24.0 to 0.25.0 (#872)
* chore: bump @prettier/plugin-php from 0.24.0 to 0.25.0 Bumps [@prettier/plugin-php](https://github.com/prettier/prettier-php) from 0.24.0 to 0.25.0. - [Release notes](https://github.com/prettier/prettier-php/releases) - [Commits](prettier/plugin-php@v0.24.0...v0.25.0) --- updated-dependencies: - dependency-name: "@prettier/plugin-php" dependency-version: 0.25.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * style: run prettier on changed files --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jared Hendrickson <github@jaredhendrickson.com>
1 parent a04b09b commit 8af3910

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"devDependencies": {
33
"prettier": "^3.8.1",
4-
"@prettier/plugin-php": "^0.24.0",
4+
"@prettier/plugin-php": "^0.25.0",
55
"@stoplight/spectral-cli": "^6.15.0"
66
}
77
}

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/ContentHandlers/BinaryContentHandler.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class BinaryContentHandler extends ContentHandler {
3636
*/
3737
protected function _encode(mixed $content = null, ?Response $context = null): mixed {
3838
# We cannot encode error messages. If an error, rethrow it to be handled by the default Response handler
39-
if (!$context instanceof Success) {
39+
if (!($context instanceof Success)) {
4040
throw $context;
4141
}
4242

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Core/ResourceLinkSet.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ResourceLinkSet {
3030
) {
3131
# Throw an error if any $resource_links value is not a ResourceLink or ResourceLinkSet object
3232
foreach ($this->resource_links as $resource_link) {
33-
if (!$resource_link instanceof ResourceLink and !$resource_link instanceof ResourceLinkSet) {
33+
if (!($resource_link instanceof ResourceLink) and !($resource_link instanceof ResourceLinkSet)) {
3434
throw new ServerError(
3535
message: 'ResourceLinkSets can only contain ResourceLink and ResourceLinkSet objects.',
3636
response_id: 'RESOURCE_LINK_SET_CONTAINS_NON_RESOURCE_LINK',

0 commit comments

Comments
 (0)