EventPrinter - More aggressive type-hinting
authorTim Otten <totten@civicrm.org>
Mon, 31 May 2021 07:56:03 +0000 (00:56 -0700)
committerTim Otten <totten@civicrm.org>
Mon, 31 May 2021 07:56:03 +0000 (00:56 -0700)
Civi/Core/Event/EventPrinter.php

index 6c70e1fa1b7184684550bc5f7742a1a4842aef2e..0c2cfb6235399733449db356c692b6304231120d 100644 (file)
@@ -16,7 +16,7 @@ class EventPrinter {
    * @param mixed $callback
    * @return string
    */
-  public static function formatName($callback) {
+  public static function formatName($callback): string {
     $normalizeNamespace = function($symbol) {
       return $symbol{0} === '\\' ? substr($symbol, 1) : $symbol;
     };