• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nepada / bust-cache / 8908022938

01 May 2024 10:02AM UTC coverage: 95.395%. Remained the same
8908022938

Pull #117

github

web-flow
Merge a2e027d31 into 5183f0b29
Pull Request #117: Bump the phpstan group with 5 updates

290 of 304 relevant lines covered (95.39%)

0.95 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.71
/src/BustCache/FileSystem/File.php
1
<?php
2
declare(strict_types = 1);
3

4
namespace Nepada\BustCache\FileSystem;
5

6
final class File
7
{
8

9
    private function __construct(
1✔
10
        public readonly Path $path,
11
    )
12
    {
13
    }
1✔
14

15
    public static function fromLocalPath(Path|string $path): static
1✔
16
    {
17
        if (is_string($path)) {
1✔
18
            $path = Path::of($path);
1✔
19
        }
20
        return new static($path);
1✔
21
    }
22

23
    /**
24
     * @deprecated read the property directly instead
25
     */
26
    public function getPath(): Path
27
    {
28
        return $this->path;
×
29
    }
30

31
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc