-
Notifications
You must be signed in to change notification settings - Fork 7
Fix undefined vars #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@ralflang, please merge. |
@TDannhauer, please could you review/merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes undefined variable issues in the vacation functionality by correcting variable references and assignments.
- Replaces undefined
$start
and$end
variables with empty arrays in Form/Vacation.php - Corrects variable name from
$notification
to$notify
in Basic/Vacation.php
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
lib/Form/Vacation.php | Fixes undefined variable usage by passing empty arrays instead of undefined variables |
lib/Basic/Vacation.php | Corrects variable assignment to use the properly defined $notify variable |
$start = $this->_start->getInfo($vars, []); | ||
$end = $this->_end->getInfo($vars, []); |
Copilot
AI
Aug 6, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passing an empty array as the second parameter may not provide the expected default behavior. Consider investigating what the original intent was for the second parameter - it might need a specific default value rather than an empty array.
$start = $this->_start->getInfo($vars, []); | |
$end = $this->_end->getInfo($vars, []); | |
$start = $this->_start->getInfo($vars, $this->_errors); | |
$end = $this->_end->getInfo($vars, $this->_errors); |
Copilot uses AI. Check for mistakes.
$start = $this->_start->getInfo($vars, []); | ||
$end = $this->_end->getInfo($vars, []); |
Copilot
AI
Aug 6, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passing an empty array as the second parameter may not provide the expected default behavior. Consider investigating what the original intent was for the second parameter - it might need a specific default value rather than an empty array.
$start = $this->_start->getInfo($vars, []); | |
$end = $this->_end->getInfo($vars, []); | |
$start = $this->_start->getInfo($vars, null); | |
$end = $this->_end->getInfo($vars, null); |
Copilot uses AI. Check for mistakes.
No description provided.