Skip to content

Commit aeeb982

Browse files
some php 7.0 adjustments
1 parent 3b3d753 commit aeeb982

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*/
3030
class Module
3131
{
32-
public const RAVENJS_VERSION = '3.27.0';
32+
const RAVENJS_VERSION = '3.27.0';
3333

3434
/**
3535
* Translates Zend Framework log levels to Raven log levels.

config/zend-sentry.local.php.dist

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
* If you have a ./config/autoload/ directory set up for your project, you can
66
* drop this config file in it, remove the .dist extension add your configuration details.
77
*/
8-
$settings = array(
8+
$settings = [
99
/**
1010
* Your Sentry API key
1111
*/
1212
'sentry-api-key' => '',
13-
);
13+
];
1414

1515
/**
1616
* You do not need to edit below this line
1717
*/
18-
return array(
18+
return [
1919
'zend-sentry' => $settings,
20-
);
20+
];

src/ZendSentry/ZendSentry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function registerShutdownFunction($reservedMemorySize = 10): ZendSentry
100100
/**
101101
* @return null|string
102102
*/
103-
public function getCSPNonce(): ?string
103+
public function getCSPNonce()
104104
{
105105
return self::$nonce;
106106
}

0 commit comments

Comments
 (0)