Last analyzed 429f112 3 days ago
Default analysis branch is
Currently analyzing run
Invalid typehint detected in function PHP-W1029
Bug risk
20 days agoa year old
Method App\Models\PaymentType::forCheckout() has invalid return type App\Models\collection
 40     * @param Checkout
 41     * @return collection of the payment types.
 42     */
 43    public static function forCheckout(Checkout $checkout) 44    {
 45        return Cache::remember('paymentTypesFor.'.$checkout, 86400, function () use ($checkout) {
 46            $payment_types = [self::INCOME, self::EXPENSE];
Method App\Models\GeneralAssemblies\Question::isMultipleChoice() has invalid return type App\Models\GeneralAssemblies\book
103    /**
104     * @return book Whether the question is a multiple-choice question (with checkboxes).
105     */
106    public function isMultipleChoice(): bool107    {
108        return $this->max_options>1;
109    }