Skip to content

Commit

Permalink
Test Psalm type improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 31, 2024
1 parent e24b873 commit bbacd2e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/framework/src/Hyde.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,38 @@
*/
class Hyde extends Facade
{
/**
* @psalm-return non-empty-string
*/
public static function version(): string
{
return HydeKernel::version();
}

/**
* @psalm-return HydeKernel
*/
public static function getFacadeRoot(): HydeKernel
{
return HydeKernel::getInstance();
}

/**
* @psalm-return HydeKernel
*/
#[Pure]
public static function kernel(): HydeKernel
{
return HydeKernel::getInstance();
}

/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor(): string

Check warning on line 57 in packages/framework/src/Hyde.php

View check run for this annotation

Codecov / codecov/patch

packages/framework/src/Hyde.php#L57

Added line #L57 was not covered by tests
{
return 'hyde';

Check warning on line 59 in packages/framework/src/Hyde.php

View check run for this annotation

Codecov / codecov/patch

packages/framework/src/Hyde.php#L59

Added line #L59 was not covered by tests
}
}

0 comments on commit bbacd2e

Please sign in to comment.