Mercurial > hg > isophonics-drupal-site
comparison vendor/psy/psysh/src/Command/TraceCommand.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 5fb285c0d0e3 |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
124 $function = $trace[$i]['function']; | 124 $function = $trace[$i]['function']; |
125 $file = isset($trace[$i]['file']) ? $this->replaceCwd($cwd, $trace[$i]['file']) : 'n/a'; | 125 $file = isset($trace[$i]['file']) ? $this->replaceCwd($cwd, $trace[$i]['file']) : 'n/a'; |
126 $line = isset($trace[$i]['line']) ? $trace[$i]['line'] : 'n/a'; | 126 $line = isset($trace[$i]['line']) ? $trace[$i]['line'] : 'n/a'; |
127 | 127 |
128 // Leave execution loop out of the `eval()'d code` lines | 128 // Leave execution loop out of the `eval()'d code` lines |
129 if (preg_match("#/src/ExecutionClosure.php\(\d+\) : eval\(\)'d code$#", str_replace('\\', '/', $file))) { | 129 if (preg_match("#/src/Execution(?:Loop)?Closure.php\(\d+\) : eval\(\)'d code$#", str_replace('\\', '/', $file))) { |
130 $file = "eval()'d code"; | 130 $file = "eval()'d code"; |
131 } | 131 } |
132 | 132 |
133 // Skip any lines that don't match our filter options | 133 // Skip any lines that don't match our filter options |
134 if (!$this->filter->match(sprintf('%s%s%s() at %s:%s', $class, $type, $function, $file, $line))) { | 134 if (!$this->filter->match(sprintf('%s%s%s() at %s:%s', $class, $type, $function, $file, $line))) { |