Skip to content

Commit

Permalink
Merge pull request #13 from sasezaki/gitattributes
Browse files Browse the repository at this point in the history
ignore build for dist
  • Loading branch information
sasezaki authored Mar 25, 2023
2 parents 9d2420a + 1a24b2e commit 6a0d82a
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 46 deletions.
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
/examples/ export-ignore
/vendor-bin/ export-ignore


/codeception.yml export-ignore
/codeception.yml export-ignore
/build/ export-ignore
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/vendor/
vendor
tests/_output
tests/_run/*
/vendor
/tests/_output
/tests/_run/*

/.idea/
Empty file modified build/transform-source
100644 → 100755
Empty file.
17 changes: 8 additions & 9 deletions stubs-for-exception/AbstractLogger.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ namespace Psr\Log;
* It simply delegates all log-level-specific methods to the `log` method to
* reduce boilerplate code that a simple Logger that does the same thing with
* messages regardless of the error level has to implement.
*
* @psalm-import-type LoggerContextType from LoggerInterface
*/
abstract class AbstractLogger implements LoggerInterface
{
/**
* System is unusable.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -32,7 +31,7 @@ abstract class AbstractLogger implements LoggerInterface
* Example: Entire website down, database unavailable, etc. This should
* trigger the SMS alerts and wake you up.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -47,7 +46,7 @@ abstract class AbstractLogger implements LoggerInterface
*
* Example: Application component unavailable, unexpected exception.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -61,7 +60,7 @@ abstract class AbstractLogger implements LoggerInterface
* Runtime errors that do not require immediate action but should typically
* be logged and monitored.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -77,7 +76,7 @@ abstract class AbstractLogger implements LoggerInterface
* Example: Use of deprecated APIs, poor use of an API, undesirable things
* that are not necessarily wrong.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -90,7 +89,7 @@ abstract class AbstractLogger implements LoggerInterface
/**
* Normal but significant events.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -105,7 +104,7 @@ abstract class AbstractLogger implements LoggerInterface
*
* Example: User logs in, SQL logs.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -118,7 +117,7 @@ abstract class AbstractLogger implements LoggerInterface
/**
* Detailed debug information.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand Down
21 changes: 10 additions & 11 deletions stubs-for-exception/LoggerInterface.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ namespace Psr\Log;
*
* See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md
* for the full interface specification.
*
* @psalm-type LoggerContextType = array{exception?: \Exception}
*/
interface LoggerInterface
{
/**
* System is unusable.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -37,7 +36,7 @@ interface LoggerInterface
* Example: Entire website down, database unavailable, etc. This should
* trigger the SMS alerts and wake you up.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -49,7 +48,7 @@ interface LoggerInterface
*
* Example: Application component unavailable, unexpected exception.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -60,7 +59,7 @@ interface LoggerInterface
* Runtime errors that do not require immediate action but should typically
* be logged and monitored.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -73,7 +72,7 @@ interface LoggerInterface
* Example: Use of deprecated APIs, poor use of an API, undesirable things
* that are not necessarily wrong.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -83,7 +82,7 @@ interface LoggerInterface
/**
* Normal but significant events.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -95,7 +94,7 @@ interface LoggerInterface
*
* Example: User logs in, SQL logs.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -105,7 +104,7 @@ interface LoggerInterface
/**
* Detailed debug information.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -115,8 +114,8 @@ interface LoggerInterface
/**
* Logs with an arbitrary level.
*
* @param LogLevel::* $level
* @param string $message
* @param LogLevel::* $level
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand Down
17 changes: 8 additions & 9 deletions stubs-for-throwable/AbstractLogger.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ namespace Psr\Log;
* It simply delegates all log-level-specific methods to the `log` method to
* reduce boilerplate code that a simple Logger that does the same thing with
* messages regardless of the error level has to implement.
*
* @psalm-import-type LoggerContextType from LoggerInterface
*/
abstract class AbstractLogger implements LoggerInterface
{
/**
* System is unusable.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -32,7 +31,7 @@ abstract class AbstractLogger implements LoggerInterface
* Example: Entire website down, database unavailable, etc. This should
* trigger the SMS alerts and wake you up.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -47,7 +46,7 @@ abstract class AbstractLogger implements LoggerInterface
*
* Example: Application component unavailable, unexpected exception.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -61,7 +60,7 @@ abstract class AbstractLogger implements LoggerInterface
* Runtime errors that do not require immediate action but should typically
* be logged and monitored.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -77,7 +76,7 @@ abstract class AbstractLogger implements LoggerInterface
* Example: Use of deprecated APIs, poor use of an API, undesirable things
* that are not necessarily wrong.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -90,7 +89,7 @@ abstract class AbstractLogger implements LoggerInterface
/**
* Normal but significant events.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -105,7 +104,7 @@ abstract class AbstractLogger implements LoggerInterface
*
* Example: User logs in, SQL logs.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -118,7 +117,7 @@ abstract class AbstractLogger implements LoggerInterface
/**
* Detailed debug information.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand Down
21 changes: 10 additions & 11 deletions stubs-for-throwable/LoggerInterface.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ namespace Psr\Log;
*
* See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md
* for the full interface specification.
*
* @psalm-type LoggerContextType = array{exception?: \Throwable}
*/
interface LoggerInterface
{
/**
* System is unusable.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -37,7 +36,7 @@ interface LoggerInterface
* Example: Entire website down, database unavailable, etc. This should
* trigger the SMS alerts and wake you up.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -49,7 +48,7 @@ interface LoggerInterface
*
* Example: Application component unavailable, unexpected exception.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -60,7 +59,7 @@ interface LoggerInterface
* Runtime errors that do not require immediate action but should typically
* be logged and monitored.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -73,7 +72,7 @@ interface LoggerInterface
* Example: Use of deprecated APIs, poor use of an API, undesirable things
* that are not necessarily wrong.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -83,7 +82,7 @@ interface LoggerInterface
/**
* Normal but significant events.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -95,7 +94,7 @@ interface LoggerInterface
*
* Example: User logs in, SQL logs.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -105,7 +104,7 @@ interface LoggerInterface
/**
* Detailed debug information.
*
* @param string $message
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand All @@ -115,8 +114,8 @@ interface LoggerInterface
/**
* Logs with an arbitrary level.
*
* @param LogLevel::* $level
* @param string $message
* @param LogLevel::* $level
* @param string $message
* @param LoggerContextType $context
*
* @return void
Expand Down

0 comments on commit 6a0d82a

Please sign in to comment.