File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 81
81
composer init:admin
82
82
composer openapi:generate
83
83
git update-index --refresh || printf ''
84
- git diff-index "${{ github.sha }}" --quiet -- src/Resources/app/administration/src/types/openapi.d.ts || (echo "Please run 'composer openapi:generate' to update openapi.d.ts" && exit 1)
85
- git diff-index "${{ github.sha }}" --quiet -- src/Resources/Schema || (echo "Please run 'composer openapi:generate' to update Resources/Schema files" && exit 1)
84
+ git diff --exit-code src/Resources/app/administration/src/types/openapi.d.ts || (echo "Please run 'composer openapi:generate' to update openapi.d.ts" && exit 1)
85
+ git diff --exit-code src/Resources/Schema || (echo "Please run 'composer openapi:generate' to update Resources/Schema files" && exit 1)
Original file line number Diff line number Diff line change @@ -242,10 +242,10 @@ private function createProduct(): Product
242
242
243
243
private function createProductConverter (): ProductConverter
244
244
{
245
- $ variantConverter = $ this -> createStub (VariantConverter::class);
245
+ $ variantConverter = static :: createStub (VariantConverter::class);
246
246
$ variantConverter ->method ('convert ' )->willReturn (new Variant ());
247
247
248
- $ categoryConverter = $ this -> createStub (CategoryConverter::class);
248
+ $ categoryConverter = static :: createStub (CategoryConverter::class);
249
249
$ categoryConverter ->method ('convert ' )->willReturn (new Category ());
250
250
251
251
return new ProductConverter (
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ protected function setUp(): void
62
62
$ this ->inventoryContext ->setSalesChannel ($ salesChannel );
63
63
64
64
$ this ->inventorySyncer = new InventorySyncer (
65
- $ this -> createStub (InventoryContextFactory::class),
65
+ static :: createStub (InventoryContextFactory::class),
66
66
$ this ->localUpdater ,
67
67
$ this ->remoteUpdater ,
68
68
$ this ->inventoryRepository
You can’t perform that action at this time.
0 commit comments