Skip to content

Commit

Permalink
Fix paths in ThemePath
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Jun 13, 2024
1 parent 60ccc5e commit d2b315d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Theme/ThemePath.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

final class ThemePath
{
public const BOOTSTRAP5_HORIZONTAL = __DIR__ . '/../config/theme-bootstrap5-horizontal.php';
public const BOOTSTRAP5_VERTICAL = __DIR__ . '/../config/theme-bootstrap5-vertical.php';
public const BOOTSTRAP5_HORIZONTAL = __DIR__ . '/../../config/theme-bootstrap5-horizontal.php';

Check failure on line 9 in src/Theme/ThemePath.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.3-ubuntu-latest

MissingClassConstType

src/Theme/ThemePath.php:9:18: MissingClassConstType: Class constant "Yiisoft\Form\Theme\ThemePath::BOOTSTRAP5_HORIZONTAL" should have a declared type. (see https://psalm.dev/359)
public const BOOTSTRAP5_VERTICAL = __DIR__ . '/../../config/theme-bootstrap5-vertical.php';

Check failure on line 10 in src/Theme/ThemePath.php

View workflow job for this annotation

GitHub Actions / psalm / PHP 8.3-ubuntu-latest

MissingClassConstType

src/Theme/ThemePath.php:10:18: MissingClassConstType: Class constant "Yiisoft\Form\Theme\ThemePath::BOOTSTRAP5_VERTICAL" should have a declared type. (see https://psalm.dev/359)
}
17 changes: 17 additions & 0 deletions tests/Theme/ThemePathTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

namespace Yiisoft\Form\Tests\Theme;

use PHPUnit\Framework\TestCase;
use Yiisoft\Form\Theme\ThemePath;

final class ThemePathTest extends TestCase
{
public function testBase(): void
{
$this->assertFileExists(ThemePath::BOOTSTRAP5_HORIZONTAL);
$this->assertFileExists(ThemePath::BOOTSTRAP5_VERTICAL);
}
}

0 comments on commit d2b315d

Please sign in to comment.