Skip to content

#125 Small fixes: schedule context decoding, duplicated ROLE_USER, expression-language, naming strategy - #126

Merged
njoubert-cleverage merged 2 commits into
mainfrom
125
Oct 8, 2026
Merged

njoubert-cleverage merged 2 commits into
mainfrom
125

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #125.

  • ProcessSchedule::getContext(): json_decode($this->context, true) (a JSON object gave a stdClass: TypeError on the return type; not reached in practice, the column is a JSON column)
  • User::getRoles(): ROLE_USER no longer duplicated when it is stored (UserCreateCommand stores ['ROLE_USER', 'ROLE_ADMIN'])
  • composer.json: symfony/expression-language declared (required by Assert\When on ProcessSchedule::$expression, it was only a transitive dependency)
  • docs/index.md: the entities expect the underscore_number_aware Doctrine naming strategy (that of the Symfony recipe)

Tests: ProcessScheduleTest::testGetContextDecodesJsonString (JSON object), UserTest::testRoleUserIsNotDuplicated.

Checked (Symfony 8.1, PHP 8.5): 284 tests OK; without the fix, both tests fail. composer validate, PHPStan, PHP-CS-Fixer, Rector OK.

Requirements

  • Documentation updates
    • Reference
    • Changelog
  • Unit tests

Breaking changes

None.

🤖 Generated with Claude Code

…pression-language, naming strategy

- ProcessSchedule::getContext(): json_decode() with true (a JSON object gave a stdClass)
- User::getRoles(): ROLE_USER no longer duplicated when stored
- symfony/expression-language declared (Assert\When), it was only a transitive dependency
- docs: the entities expect the underscore_number_aware Doctrine naming strategy

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@njoubert-cleverage njoubert-cleverage added the enhancement New feature or request label Oct 8, 2026
@njoubert-cleverage
njoubert-cleverage merged commit c2fd7f1 into main Oct 8, 2026
18 checks passed
@njoubert-cleverage
njoubert-cleverage deleted the 125 branch October 8, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Small fixes: schedule context decoding, duplicated ROLE_USER, undeclared expression-language, naming strategy prerequisite

1 participant