Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fix: ## run fix tools

check: ## run analysis tools
make phpcs
make pslam
make psalm
make phpstan

infection:
Expand Down
3 changes: 3 additions & 0 deletions src/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ public function __construct(
assert($this->version >= 0);
}

/**
* @return non-empty-string
*/
public function getName(): string
{
return $this->dbName . '/' . $this->filename;
Expand Down
6 changes: 6 additions & 0 deletions src/event/EventInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@

interface EventInterface
{
/**
* @return non-empty-string
*/
public function getName(): string;

/**
* @return non-empty-string
*/
public function getMessage(): string;
}
6 changes: 6 additions & 0 deletions src/event/ExceptionEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

final readonly class ExceptionEvent implements EventInterface
{
/**
* @param non-empty-string $dbName
*/
public function __construct(
public string $dbName,
public Throwable $exception,
Expand All @@ -24,6 +27,9 @@ public function getName(): string
#[Override]
public function getMessage(): string
{
/**
* @var non-empty-string
*/
return $this->exception->getMessage();
}
}
2 changes: 1 addition & 1 deletion src/internal/filesystem/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use dbschemix\core\exception\ConfigurationException;

/**
* @psalm-internal dbschemix\core
* @psalm-internal dbschemix\core\internal
*/
final readonly class Action
{
Expand Down
2 changes: 1 addition & 1 deletion src/internal/filesystem/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use dbschemix\core\InputOptions;

/**
* @psalm-internal dbschemix\core
* @psalm-internal dbschemix\core\internal
*/
final readonly class Options
{
Expand Down
2 changes: 1 addition & 1 deletion src/internal/filesystem/Setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use dbschemix\core\exception\ConfigurationException;

/**
* @psalm-internal dbschemix\core
* @psalm-internal dbschemix\core\internal
*/
final readonly class Setup
{
Expand Down
Loading