Commit 14dd44d0 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix: declare typed properties in PHPDoc for php<7.4

- fixes error when running castopod on php<7.4

fixes #23
parent 7fb1de2c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
FROM php:latest
FROM php:7.2-fpm

COPY --from=composer /usr/bin/composer /usr/bin/composer

+1 −1
Original line number Diff line number Diff line
FROM php:latest
FROM php:7.2-fpm

COPY . /castopod
WORKDIR /castopod
+1 −1
Original line number Diff line number Diff line
@@ -287,7 +287,7 @@ $routes->group(
        $routes->get('forgot', 'AuthController::forgotPassword', [
            'as' => 'forgot',
        ]);
        $routes->post('forgot', 'Auth::attemptForgot');
        $routes->post('forgot', 'AuthController::attemptForgot');
        $routes->get('reset-password', 'AuthController::resetPassword', [
            'as' => 'reset-password',
        ]);
+9 −2
Original line number Diff line number Diff line
@@ -14,8 +14,15 @@ use App\Models\UserModel;

class Contributor extends BaseController
{
    protected \App\Entities\Podcast $podcast;
    protected ?\App\Entities\User $user;
    /**
     * @var \App\Entities\Podcast
     */
    protected $podcast;

    /**
     * @var \App\Entities\User|null
     */
    protected $user;

    public function _remap($method, ...$params)
    {
+9 −2
Original line number Diff line number Diff line
@@ -13,8 +13,15 @@ use App\Models\PodcastModel;

class Episode extends BaseController
{
    protected \App\Entities\Podcast $podcast;
    protected ?\App\Entities\Episode $episode;
    /**
     * @var \App\Entities\Podcast
     */
    protected $podcast;

    /**
     * @var \App\Entities\Episode|null
     */
    protected $episode;

    public function _remap($method, ...$params)
    {
Loading