Skip to content

Commit

Permalink
https://github.com/mage2pro/core/issues/423
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jun 11, 2024
1 parent 699874b commit 682fa53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions Framework/lib/composer.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,16 @@ function df_package($m = null, $k = '', $d = null) {
* 1) "`df_package()` should look for `composer.json` in the parent directory for all packages (not only `mage2pro/*`),
* similar to @see Magento\SampleData\Model\Dependency::getModuleComposerPackage() in Magento ≥ 2.3":
* https://github.com/mage2pro/core/issues/412
* 2024-06-11
* 1) «Error happened during deploy process: Argument 1 passed to dfa() must be of the type array, null given,
* called in vendor/mage2pro/core/Framework/lib/composer.php on line 57»: https://github.com/mage2pro/core/issues/423
* 2) @uses df_find() can return `null`, so I added `df_eta` before it.
* @var string $p
*/
$cache[$m] = df_find([$p = df_module_path($m), dirname($p)], function(string $p):array {return df_eta(df_json_decode(
$cache[$m] = df_eta(df_find([$p = df_module_path($m), dirname($p)], function(string $p):array {return df_eta(df_json_decode(
df_contents("$p/composer.json", '')
));});
));}));
}
/*if (null === $cache[$m]) {
xdebug_break();
}*/
return dfa($cache[$m], $k, $d);
}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/core"
,"version": "11.2.6"
,"version": "11.2.7"
,"description": "Mage2.PRO core package."
,"type": "magento2-module"
,"homepage": "https://mage2.pro"
Expand Down

0 comments on commit 682fa53

Please sign in to comment.