Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

jan-pintr
Copy link
Contributor

Q A
Branch? 7.3
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

According to this comment there is a change in behaviour after #60741 which causes requiring specify arguments parameter when tagging scheduler.task manually. This pull request makes arguments parameter back optional.

$myService->tag('scheduler.task', [
    'trigger' => 'every',
    'frequency' => 15,
    'arguments' => null, // <- had to add this line to avoid a Warning: Undefined array key "arguments"
]);

@nicolas-grekas
Copy link
Member

Thank you @jan-pintr.

@nicolas-grekas nicolas-grekas force-pushed the fix-sheduler-task-tag-arguments-optionality branch from d966e61 to ad08041 Compare August 5, 2025 09:22
@nicolas-grekas nicolas-grekas merged commit d46d595 into symfony:7.3 Aug 5, 2025
11 checks passed
@fabpot fabpot mentioned this pull request Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants