projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7a8d0e
)
[NFC] - Compatibility for PHP-7.4/PHP-8
author
tschuettler
<tschuettler@oxfam.de>
Thu, 17 Mar 2022 16:14:41 +0000
(17:14 +0100)
committer
GitHub
<noreply@github.com>
Thu, 17 Mar 2022 16:14:41 +0000
(17:14 +0100)
There are a few more leftovers under vendor and packages: `find . -name "*.php" -exec php -l {} \; | grep -v "No"`. Not sure how to deal with that.
Civi/Core/Event/EventPrinter.php
patch
|
blob
|
blame
|
history
diff --git
a/Civi/Core/Event/EventPrinter.php
b/Civi/Core/Event/EventPrinter.php
index 0c2cfb6235399733449db356c692b6304231120d..74091efd1da5e2265066c4ac014870c7eb318085 100644
(file)
--- a/
Civi/Core/Event/EventPrinter.php
+++ b/
Civi/Core/Event/EventPrinter.php
@@
-18,7
+18,7
@@
class EventPrinter {
*/
public static function formatName($callback): string {
$normalizeNamespace = function($symbol) {
- return $symbol
{0}
=== '\\' ? substr($symbol, 1) : $symbol;
+ return $symbol
[0]
=== '\\' ? substr($symbol, 1) : $symbol;
};
if (is_array($callback)) {
[$a, $b] = $callback;