Skip to content

Commit

Permalink
Merge pull request #217 from welaika/error_reporting
Browse files Browse the repository at this point in the history
Error reporting
  • Loading branch information
alessandro-fazzi authored Feb 22, 2018
2 parents 0d956b6 + 23f6a64 commit 7b13ffd
Show file tree
Hide file tree
Showing 84 changed files with 2,959 additions and 858 deletions.
157 changes: 78 additions & 79 deletions composer.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Contributors: welaika, stefano.verna
Donate link: https://github.com/welaika/wordless
Tags: sass, pug, jade, webpack, scss, npm, yarn
Requires at least: 3.0
Tested up to: 4.9.1
Stable tag: 2.0.6
Tested up to: 4.9.4
Stable tag: 2.1.0
License: The MIT License
License URI: http://www.opensource.org/licenses/MIT

Expand Down
6 changes: 4 additions & 2 deletions tests/render_helper_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ function test_pug_instance_options_with_wp_debug_false() {
'cache' => Wordless::theme_temp_path(),
'strict' => true,
'debug' => false,
'enable_profiler' => false
'enable_profiler' => false,
'error_reporting' => E_ERROR | E_USER_ERROR
),
WordlessPugOptions::get_options()
);
Expand All @@ -83,7 +84,8 @@ function test_pug_instance_options_with_wp_debug_true() {
'cache' => Wordless::theme_temp_path(),
'strict' => true,
'debug' => true,
'enable_profiler' => true
'enable_profiler' => false,
'error_reporting' => E_ERROR | E_USER_ERROR
),
WordlessPugOptions::get_options()
);
Expand Down
4 changes: 2 additions & 2 deletions vendor/composer/ClassLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,9 @@ private function findFileWithExtension($class, $ext)
$subPath = substr($subPath, 0, $lastPos);
$search = $subPath.'\\';
if (isset($this->prefixDirsPsr4[$search])) {
$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
foreach ($this->prefixDirsPsr4[$search] as $dir) {
$length = $this->prefixLengthsPsr4[$first][$search];
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
if (file_exists($file = $dir . $pathEnd)) {
return $file;
}
}
Expand Down
2 changes: 1 addition & 1 deletion vendor/composer/autoload_psr4.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'),
'Symfony\\Component\\VarDumper\\' => array($vendorDir . '/symfony/var-dumper'),
'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src'),
'' => array($vendorDir . '/js-transformer/js-transformer/src', $vendorDir . '/phug/event/src', $vendorDir . '/phug/util/src', $vendorDir . '/phug/ast/src', $vendorDir . '/phug/reader/src', $vendorDir . '/phug/lexer/src', $vendorDir . '/phug/parser/src', $vendorDir . '/phug/dependency-injection/src', $vendorDir . '/phug/formatter/src', $vendorDir . '/phug/compiler/src', $vendorDir . '/phug/renderer/src', $vendorDir . '/phug/phug/src'),
'' => array($vendorDir . '/js-transformer/js-transformer/src', $vendorDir . '/phug/ast/src', $vendorDir . '/phug/compiler/src', $vendorDir . '/phug/dependency-injection/src', $vendorDir . '/phug/event/src', $vendorDir . '/phug/formatter/src', $vendorDir . '/phug/lexer/src', $vendorDir . '/phug/parser/src', $vendorDir . '/phug/phug/src', $vendorDir . '/phug/reader/src', $vendorDir . '/phug/renderer/src', $vendorDir . '/phug/util/src'),
);
20 changes: 10 additions & 10 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ class ComposerStaticInite5b34b7ebbce05aded2063cbbbe4b8b3

public static $fallbackDirsPsr4 = array (
0 => __DIR__ . '/..' . '/js-transformer/js-transformer/src',
1 => __DIR__ . '/..' . '/phug/event/src',
2 => __DIR__ . '/..' . '/phug/util/src',
3 => __DIR__ . '/..' . '/phug/ast/src',
4 => __DIR__ . '/..' . '/phug/reader/src',
5 => __DIR__ . '/..' . '/phug/lexer/src',
6 => __DIR__ . '/..' . '/phug/parser/src',
7 => __DIR__ . '/..' . '/phug/dependency-injection/src',
8 => __DIR__ . '/..' . '/phug/formatter/src',
9 => __DIR__ . '/..' . '/phug/compiler/src',
1 => __DIR__ . '/..' . '/phug/ast/src',
2 => __DIR__ . '/..' . '/phug/compiler/src',
3 => __DIR__ . '/..' . '/phug/dependency-injection/src',
4 => __DIR__ . '/..' . '/phug/event/src',
5 => __DIR__ . '/..' . '/phug/formatter/src',
6 => __DIR__ . '/..' . '/phug/lexer/src',
7 => __DIR__ . '/..' . '/phug/parser/src',
8 => __DIR__ . '/..' . '/phug/phug/src',
9 => __DIR__ . '/..' . '/phug/reader/src',
10 => __DIR__ . '/..' . '/phug/renderer/src',
11 => __DIR__ . '/..' . '/phug/phug/src',
11 => __DIR__ . '/..' . '/phug/util/src',
);

public static $prefixesPsr0 = array (
Expand Down
Loading

0 comments on commit 7b13ffd

Please sign in to comment.