Showing 1 of 1 files from the diff.

@@ -107,11 +107,15 @@
Loading
107 107
                $context = isset($this) ? $this->cast($className) : new $className();
108 108
109 109
                try {
110 -
                    $closure = $closureBase->bindTo($context);
111 -
                } catch (Throwable $throwable) {
112 -
                    $closure = $closureBase;
110 +
                    // @ is required to handle error if not converted into exceptions
111 +
                    $closure = @$closureBase->bindTo($context);
112 +
                } catch (Throwable $throwable) { // @codeCoverageIgnore
113 +
                    $closure = $closureBase; // @codeCoverageIgnore
113 114
                }
114 115
116 +
                // in case of errors not converted into exceptions
117 +
                $closure = $closure ?? $closureBase;
118 +
115 119
                return $closure(...\func_get_args());
116 120
            });
117 121
        }
Files Coverage
src/Carbon 100.00%
Project Totals (885 files) 100.00%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading