Skip to content

[FEATURE] Parse simple expressions #4025

[FEATURE] Parse simple expressions

[FEATURE] Parse simple expressions #4025

Triggered via pull request December 18, 2025 01:40
Status Failure
Total duration 1m 50s
Artifacts

ci.yml

on: pull_request
Matrix: PHP Lint
Matrix: Static Analysis
Matrix: Unit tests
Fit to window
Zoom out
Zoom in

Annotations

14 errors
Unit tests (7.2)
Process completed with exit code 255.
Unit tests (7.3)
Process completed with exit code 255.
Static Analysis (php:stan, 8.3)
Process completed with exit code 1.
Static Analysis (php:stan, 8.3): tests/Unit/Value/ExpressionTest.php#L58
Call to an undefined static method Sabberworm\CSS\Tests\Value\ExpressionTest::listDelimiterForRule().
Static Analysis (php:stan, 8.3): tests/Unit/Value/ExpressionTest.php#L55
Method Sabberworm\CSS\Tests\Value\ExpressionTest::getDelimiters() return type has no value type specified in iterable type array.
Static Analysis (php:stan, 8.3): tests/Unit/Value/ExpressionTest.php#L24
Method Sabberworm\CSS\Tests\Value\ExpressionTest::provideExpressions() should return array{0?: array{string: string}} but returns array{array{input: '(vh - 10) / 2', expected_output: '(vh - 10)/2', expression_index: 0}, array{input: 'max(5, (vh - 10))', expected_output: 'max(5,(vh - 10))', expression_index: 1}}.
Static Analysis (php:stan, 8.3): tests/ParserTest.php#L1197
Method Sabberworm\CSS\Tests\ParserTest::functionArithmeticInFile() has no return type specified.
Static Analysis (php:stan, 8.3): tests/ParserTest.php#L441
Method Sabberworm\CSS\Tests\ParserTest::parseExpressions() has no return type specified.
Static Analysis (php:stan, 8.3): src/Value/Expression.php#L23
Parameter #2 $arguments of class Sabberworm\CSS\Value\Expression constructor expects array<Sabberworm\CSS\Value\Value|string>|Sabberworm\CSS\Value\RuleValueList, Sabberworm\CSS\Value\Value|string given.
Static Analysis (php:stan, 8.3): src/Value/Expression.php#L23
Parameter #1 $name of class Sabberworm\CSS\Value\Expression constructor expects non-empty-string, '' given.
Static Analysis (php:stan, 8.3): src/Value/Expression.php#L19
Return type Sabberworm\CSS\Value\Expression of method Sabberworm\CSS\Value\Expression::parse() is not compatible with return type Sabberworm\CSS\Value\CSSFunction of method Sabberworm\CSS\Value\CSSFunction::parse().
Static Analysis (php:stan, 8.3): src/Value/Expression.php#L19
PHPDoc tag `@throws` with type Sabberworm\CSS\Value\SourceException|Sabberworm\CSS\Value\UnexpectedEOFException|Sabberworm\CSS\Value\UnexpectedTokenException is not subtype of Throwable
Static Analysis (php:fixer, 8.3)
Process completed with exit code 8.
Static Analysis (php:rector, 8.3)
Process completed with exit code 2.