Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/rector-cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ concurrency:

jobs:
rector:
permissions:
contents: write # Required to commit automated Rector and CS fixes
uses: yiisoft/actions/.github/workflows/rector-cs.yml@master
with:
php: '8.1'
16 changes: 6 additions & 10 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
name: GitHub Actions Security Analysis with zizmor 🌈

on:
push:
branches:
- master
- main
paths:
- '.github/**.yml'
- '.github/**.yaml'
pull_request:
paths:
paths: &paths
- '.github/**.yml'
- '.github/**.yaml'
push:
branches: [ 'master' ]
paths: *paths

permissions:
actions: read # Required by zizmor when reading workflow metadata through the API.
contents: read # Required to read workflow files.
actions: read # Required by zizmor when reading workflow metadata through the API
contents: read # Required to read workflow files

jobs:
zizmor:
Expand Down
1 change: 1 addition & 0 deletions src/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
use function is_int;
use function is_string;
use function strlen;
use function array_key_exists;

use const ENT_HTML5;
use const ENT_NOQUOTES;
Expand Down Expand Up @@ -2405,11 +2406,11 @@
/** @psalm-var array<array-key, scalar[]|string|Stringable|null> $value */
foreach ($value as $n => $v) {
if (!isset($v)) {
continue;

Check warning on line 2409 in src/Html.php

View workflow job for this annotation

GitHub Actions / mutation / PHP 8.5-ubuntu-latest

Escaped Mutant for Mutator "Continue_": @@ @@ /** @psalm-var array<array-key, scalar[]|string|Stringable|null> $value */ foreach ($value as $n => $v) { if (!isset($v)) { - continue; + break; } $fullName = "$name-$n"; if (in_array($fullName, self::ATTRIBUTES_WITH_CONCATENATED_VALUES, true)) {
}
$fullName = "$name-$n";
if (in_array($fullName, self::ATTRIBUTES_WITH_CONCATENATED_VALUES, true)) {
$html .= self::renderAttribute(

Check warning on line 2413 in src/Html.php

View workflow job for this annotation

GitHub Actions / mutation / PHP 8.5-ubuntu-latest

Escaped Mutant for Mutator "Assignment": @@ @@ } $fullName = "$name-$n"; if (in_array($fullName, self::ATTRIBUTES_WITH_CONCATENATED_VALUES, true)) { - $html .= self::renderAttribute( + $html = self::renderAttribute( $fullName, self::encodeAttribute( is_array($v) ? implode(' ', $v) : $v,
$fullName,
self::encodeAttribute(
is_array($v) ? implode(' ', $v) : $v,
Expand Down
Loading