File tree Expand file tree Collapse file tree 5 files changed +12
-12
lines changed
Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ class Module
6666 /**
6767 * @param MvcEvent $event
6868 */
69- public function onBootstrap (MvcEvent $ event ): void
69+ public function onBootstrap (MvcEvent $ event )
7070 {
7171 // Setup RavenClient (provided by Sentry) and Sentry (provided by this module)
7272 $ this ->config = $ event ->getApplication ()->getServiceManager ()->get ('Config ' );
@@ -151,7 +151,7 @@ public function getConfig()
151151 *
152152 * @param MvcEvent $event
153153 */
154- protected function setupBasicLogging (MvcEvent $ event ): void
154+ protected function setupBasicLogging (MvcEvent $ event )
155155 {
156156 // Get the shared event manager and attach a logging listener for the log event on application level
157157 $ sharedManager = $ this ->eventManager ->getSharedManager ();
@@ -185,7 +185,7 @@ protected function setupBasicLogging(MvcEvent $event): void
185185 *
186186 * @param MvcEvent $event
187187 */
188- protected function setupExceptionLogging (MvcEvent $ event ): void
188+ protected function setupExceptionLogging (MvcEvent $ event )
189189 {
190190 // Register Sentry as exception handler for exception that bubble up to the top
191191 $ this ->zendSentry ->registerExceptionHandler ($ this ->config ['zend-sentry ' ]['call-existing-exception-handler ' ]);
@@ -223,7 +223,7 @@ protected function setupExceptionLogging(MvcEvent $event): void
223223 *
224224 * @param MvcEvent $event
225225 */
226- protected function setupJavascriptLogging (MvcEvent $ event ): void
226+ protected function setupJavascriptLogging (MvcEvent $ event )
227227 {
228228 /** @var HeadScript $headScript */
229229 $ headScript = $ event ->getApplication ()->getServiceManager ()->get ('ViewHelperManager ' )->get ('headscript ' );
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class ExceptionStrategy extends AbstractListenerAggregate
6262 /**
6363 * {@inheritDoc}
6464 */
65- public function attach (EventManagerInterface $ events , $ priority = 1 ): void
65+ public function attach (EventManagerInterface $ events , $ priority = 1 )
6666 {
6767 $ this ->listeners [] = $ events ->attach (MvcEvent::EVENT_DISPATCH_ERROR , [$ this , 'prepareExceptionViewModel ' ]);
6868 $ this ->listeners [] = $ events ->attach (MvcEvent::EVENT_RENDER_ERROR , [$ this , 'prepareExceptionViewModel ' ]);
@@ -143,7 +143,7 @@ public function setMessage($message): ExceptionStrategy
143143 * @param MvcEvent $e
144144 * @return void
145145 */
146- public function prepareExceptionViewModel (MvcEvent $ e ): void
146+ public function prepareExceptionViewModel (MvcEvent $ e )
147147 {
148148 // Do nothing if no error in the event
149149 $ error = $ e ->getError ();
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class ExceptionStrategy extends AbstractListenerAggregate
4949 /**
5050 * {@inheritDoc}
5151 */
52- public function attach (EventManagerInterface $ events , $ priority = 1 ): void
52+ public function attach (EventManagerInterface $ events , $ priority = 1 )
5353 {
5454 $ this ->listeners [] = $ events ->attach (MvcEvent::EVENT_DISPATCH_ERROR , [$ this , 'prepareExceptionViewModel ' ]);
5555 $ this ->listeners [] = $ events ->attach (MvcEvent::EVENT_RENDER_ERROR , [$ this , 'prepareExceptionViewModel ' ]);
@@ -116,7 +116,7 @@ public function getExceptionTemplate(): string
116116 * @param MvcEvent $e
117117 * @return void
118118 */
119- public function prepareExceptionViewModel (MvcEvent $ e ): void
119+ public function prepareExceptionViewModel (MvcEvent $ e )
120120 {
121121 // Do nothing if no error in the event
122122 $ error = $ e ->getError ();
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public function registerShutdownFunction($reservedMemorySize = 10): ZendSentry
8080 /**
8181 * @param null|RavenErrorHandler $ravenErrorHandler
8282 */
83- private function setOrLoadRavenErrorHandler ($ ravenErrorHandler ): void
83+ private function setOrLoadRavenErrorHandler ($ ravenErrorHandler )
8484 {
8585 if ($ ravenErrorHandler !== null ) {
8686 $ this ->ravenErrorHandler = $ ravenErrorHandler ;
@@ -92,7 +92,7 @@ private function setOrLoadRavenErrorHandler($ravenErrorHandler): void
9292 /**
9393 * @param string $nonce
9494 */
95- public static function setCSPNonce (string $ nonce ): void
95+ public static function setCSPNonce (string $ nonce )
9696 {
9797 self ::$ nonce = $ nonce ;
9898 }
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public function setUp()
1919 $ this ->module = new ZendSentryModule ();
2020 }
2121
22- public function testDefaultModuleConfig (): void
22+ public function testDefaultModuleConfig ()
2323 {
2424 $ expectedConfig = [];
2525
@@ -28,7 +28,7 @@ public function testDefaultModuleConfig(): void
2828 $ this ->assertEquals ($ expectedConfig , $ actualConfig );
2929 }
3030
31- public function testAutoloaderConfig (): void
31+ public function testAutoloaderConfig ()
3232 {
3333 $ expectedConfig = [
3434 StandardAutoloader::class => [
You can’t perform that action at this time.
0 commit comments