Skip to content

Commit 45c4897

Browse files
committed
Merge branch '3.2' into 4.0
* 3.2: [MoneyBundle] fix getter code for money type in bricks
2 parents a41ffec + 55d8bb8 commit 45c4897

File tree

1 file changed

+1
-1
lines changed
  • src/CoreShop/Bundle/MoneyBundle/CoreExtension

1 file changed

+1
-1
lines changed

src/CoreShop/Bundle/MoneyBundle/CoreExtension/Money.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ public function getGetterCodeObjectbrick(DataObject\Objectbrick\Definition $bric
326326
$code .= '* Get ' . str_replace(['/**', '*/', '//'], '', $this->getName()) . ' - ' . str_replace(['/**', '*/', '//'], '', $this->getTitle()) . "\n";
327327
$code .= '* @return ' . $this->getPhpdocReturnType() . "\n";
328328
$code .= '*/' . "\n";
329-
$code .= 'public function get' . ucfirst($key) . ' (): ' . ($this->nullable ? '?' : '') . " {\n";
329+
$code .= 'public function get' . ucfirst($key) . ' (): ' . ($this->nullable ? '?' : '') . "int {\n";
330330

331331
if (method_exists($this, 'preGetData')) {
332332
$code .= "\t" . '$data = $this->getDefinition()->getFieldDefinition("' . $key . '")->preGetData($this);' . "\n";

0 commit comments

Comments
 (0)