kylekatarnls/business-day

View on GitHub
src/Cmixin/BusinessDay.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Call with 3 arg(s) to \Cmixin\BusinessDay::swapDateTimeParam() which only takes 0 arg(s) defined at /code/src/Cmixin/BusinessDay/MixinBase.php:59
Open

            [$days, $date] = static::swapDateTimeParam($days, $date, null);
Severity: Info
Found in src/Cmixin/BusinessDay.php by phan

Cannot access internal method \Cmixin\BusinessDay\BusinessMonth::__construct() of namespace \Cmixin\BusinessDay defined at /code/src/Cmixin/BusinessDay/BusinessMonth.php:24 from namespace \Cmixin
Open

            $month = new BusinessMonth($date ?? $self, get_class($self));
Severity: Minor
Found in src/Cmixin/BusinessDay.php by phan

Cannot access internal method \Cmixin\BusinessDay\BusinessMonth::getStart() of namespace \Cmixin\BusinessDay defined at /code/src/Cmixin/BusinessDay/BusinessMonth.php:39 from namespace \Cmixin
Open

            $date = $month->getStart();
Severity: Minor
Found in src/Cmixin/BusinessDay.php by phan

Invalid value of type \Closure in an array destructuring assignment, expected array|ArrayAccess
Open

            [$days, $date] = static::swapDateTimeParam($days, $date, null);
Severity: Minor
Found in src/Cmixin/BusinessDay.php by phan

Cannot access internal method \Cmixin\BusinessDay\BusinessMonth::__construct() of namespace \Cmixin\BusinessDay defined at /code/src/Cmixin/BusinessDay/BusinessMonth.php:24 from namespace \Cmixin
Open

            $month = new BusinessMonth($date ?? $self, get_class($self));
Severity: Minor
Found in src/Cmixin/BusinessDay.php by phan

Cannot access internal method \Cmixin\BusinessDay\BusinessMonth::getStart() of namespace \Cmixin\BusinessDay defined at /code/src/Cmixin/BusinessDay/BusinessMonth.php:39 from namespace \Cmixin
Open

            return $month->getStart()->diffInBusinessDays($month->getEnd());
Severity: Minor
Found in src/Cmixin/BusinessDay.php by phan

Cannot access internal method \Cmixin\BusinessDay\BusinessMonth::getEnd() of namespace \Cmixin\BusinessDay defined at /code/src/Cmixin/BusinessDay/BusinessMonth.php:47 from namespace \Cmixin
Open

            while ($date < $month->getEnd()) {
Severity: Minor
Found in src/Cmixin/BusinessDay.php by phan

Cannot access internal method \Cmixin\BusinessDay\BusinessMonth::getEnd() of namespace \Cmixin\BusinessDay defined at /code/src/Cmixin/BusinessDay/BusinessMonth.php:47 from namespace \Cmixin
Open

            return $month->getStart()->diffInBusinessDays($month->getEnd());
Severity: Minor
Found in src/Cmixin/BusinessDay.php by phan

There are no issues that match your filters.

Category
Status