Skip to content

Commit 55d8bb8

Browse files
Merge pull request #2825 from breakone/3.2
[MoneyBundle] fix getter code for money type in bricks
2 parents dc8ecc5 + 023fb0a commit 55d8bb8

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($brickClass)
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)