Skip to content

Commit

Permalink
Merge pull request #24 from odiseoteam/1.8
Browse files Browse the repository at this point in the history
Minor fixes
bigboss86 authored Mar 13, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents f3309f2 + f126a67 commit cf0a806
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 1 addition & 8 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
@@ -9,15 +9,8 @@

final class Configuration implements ConfigurationInterface
{
/**
* @psalm-suppress UnusedMethodCall
*/
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('odiseo_sylius_vendor_plugin');

$treeBuilder->getRootNode();

return $treeBuilder;
return new TreeBuilder('odiseo_sylius_vendor_plugin');
}
}
4 changes: 4 additions & 0 deletions src/Fixture/Factory/VendorExampleFactory.php
Original file line number Diff line number Diff line change
@@ -70,6 +70,10 @@ public function create(array $options = []): VendorInterface

protected function createImage(string $imagePath): UploadedFile
{
/**
* @var string $imagePath
* @psalm-suppress UnnecessaryVarAnnotation
*/
$imagePath = null === $this->fileLocator ? $imagePath : $this->fileLocator->locate($imagePath);

return new UploadedFile($imagePath, basename($imagePath));

0 comments on commit cf0a806

Please sign in to comment.