PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
← All changes | includes/sdk/google/monolog/monolog/src/Monolog/Handler/HandlerInterface.php +11 -21 1.1.0 → 1.4.2 View file →
@@ -8,17 +8,15 @@
8 8 *
9 9 * For the full copyright and license information, please view the LICENSE
10 10 * file that was distributed with this source code.
11 11 */
12 -namespace Dudlewebs\WPMCS\Monolog\Handler;
12 +namespace Dudlewebs\WPMCS\GCP\Monolog\Handler;
13 13
14 +use Dudlewebs\WPMCS\GCP\Monolog\LogRecord;
14 15 /**
15 16 * Interface that all Monolog Handlers must implement
16 17 *
17 18 * @author Jordi Boggiano <[email protected]>
18 - *
19 - * @phpstan-import-type Record from \Monolog\Logger
20 - * @phpstan-import-type Level from \Monolog\Logger
21 19 */
22 20 interface HandlerInterface
23 21 {
24 22 /**
@@ -29,15 +27,11 @@
29 27 * Handlers should still check the record levels within handle(), returning false in isHandling()
30 28 * is no guarantee that handle() will not be called, and isHandling() might not be called
31 29 * for a given record.
32 30 *
33 - * @param array $record Partial log record containing only a level key
34 - *
35 - * @return bool
36 - *
37 - * @phpstan-param array{level: Level} $record
31 + * @param LogRecord $record Partial log record having only a level initialized
38 32 */
39 - public function isHandling(array $record): bool;
33 + public function isHandling(LogRecord $record) : bool;
40 34 /**
41 35 * Handles a record.
42 36 *
43 37 * All records may be passed to this method, and the handler should discard
@@ -46,23 +40,19 @@
46 40 * The return value of this function controls the bubbling process of the handler stack.
47 41 * Unless the bubbling is interrupted (by returning true), the Logger class will keep on
48 42 * calling further handlers in the stack with a given log record.
49 43 *
50 - * @param array $record The record to handle
51 - * @return bool true means that this handler handled the record, and that bubbling is not permitted.
52 - * false means the record was either not processed or that this handler allows bubbling.
53 - *
54 - * @phpstan-param Record $record
44 + * @param LogRecord $record The record to handle
45 + * @return bool true means that this handler handled the record, and that bubbling is not permitted.
46 + * false means the record was either not processed or that this handler allows bubbling.
55 47 */
56 - public function handle(array $record): bool;
48 + public function handle(LogRecord $record) : bool;
57 49 /**
58 50 * Handles a set of records at once.
59 51 *
60 - * @param array $records The records to handle (an array of record arrays)
61 - *
62 - * @phpstan-param Record[] $records
52 + * @param array<LogRecord> $records The records to handle
63 53 */
64 - public function handleBatch(array $records): void;
54 + public function handleBatch(array $records) : void;
65 55 /**
66 56 * Closes the handler.
67 57 *
68 58 * Ends a log cycle and frees all resources used by the handler.
@@ -77,6 +67,6 @@
77 67 *
78 68 * If you are thinking of calling this method yourself, most likely you should be
79 69 * calling ResettableInterface::reset instead. Have a look.
80 70 */
81 - public function close(): void;
71 + public function close() : void;
82 72 }