Collection of fixes to make tests run.

This commit is contained in:
Vassyli
2020-12-24 12:36:26 +01:00
parent 709b96ea52
commit 28c12a47f1
4 changed files with 9 additions and 8 deletions
+2 -1
View File
@@ -23,7 +23,8 @@
"symfony/console": "*",
"symfony/yaml": "*",
"d11wtq/boris": "*",
"ramsey/uuid-doctrine": "*"
"ramsey/uuid-doctrine": "*",
"jetbrains/phpstorm-attributes": "*"
},
"repositories": [
{
+5 -5
View File
@@ -18,7 +18,7 @@ use LotGD\Core\Exceptions\LibraryDoesNotExistException;
*/
class ComposerManager
{
private ?Composer $composer;
private ?Composer $composer = null;
/**
* Construct a manager with an optional working directory where composer.json
@@ -71,10 +71,10 @@ class ComposerManager
*/
public function getPackages(): array
{
return \array_merge(
[$this->getComposer()->getPackage()],
$this->getComposer()->getRepositoryManager()->getLocalRepository()->getPackages()
);
return [
$this->getComposer()->getPackage(),
...$this->getComposer()->getRepositoryManager()->getLocalRepository()->getPackages(),
];
}
/**
+1 -1
View File
@@ -21,7 +21,7 @@ class CharacterEventData extends EventContextData
"required" => "bool",
],
])]
protected static array $argumentConfig = [
protected static ?array $argumentConfig = [
"character" => ["type" => Character::class, "required" => true],
"value" => ["type" => "mixed", "required" => false],
];
+1 -1
View File
@@ -17,7 +17,7 @@ class ViewpointDecorationEventData extends EventContextData
"required" => "bool",
],
])]
protected static array $argumentConfig = [
protected static ?array $argumentConfig = [
"viewpoint" => ["type" => Viewpoint::class, "required" => true],
];
}