Skip to content

Commit f4bbfed

Browse files
committed
fix new model stan error
1 parent 1d492c4 commit f4bbfed

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

templates/Builder/Om/baseObjectMethodMagicCall.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
<?php if ($behaviorCallScript): ?>
22
/**
3-
* Catches calls to undefined methods.
4-
*
53
* Provides magic import/export method support (fromXML()/toXML(), fromYAML()/toYAML(), etc.).
64
* Allows to define default __call() behavior if you overwrite __call()
75
*
86
* @param string $name
97
* @param mixed $params
108
*
11-
* @return array|string
9+
* @return mixed
1210
*/
1311
public function __call($name, $params)
1412
{
@@ -19,8 +17,6 @@ public function __call($name, $params)
1917

2018
<?php endif?>
2119
/**
22-
* Derived method to catches calls to undefined methods.
23-
*
2420
* Provides magic import/export method support (fromXML()/toXML(), fromYAML()/toYAML(), etc.).
2521
* Allows to define default __call() behavior if you overwrite __call()
2622
*
@@ -29,7 +25,7 @@ public function __call($name, $params)
2925
*
3026
* @throws \Propel\Runtime\Exception\BadMethodCallException
3127
*
32-
* @return array|string
28+
* @return mixed
3329
*/
3430
public function __<?= $behaviorCallScript ? 'parentCall' : 'call'?>($name, $params)
3531
{

tests/Propel/Tests/Generator/Builder/Om/expected_builder_code/simple_base_model_reference.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,8 +1145,6 @@ abstract class IdTable implements ActiveRecordInterface
11451145
}
11461146

11471147
/**
1148-
* Derived method to catches calls to undefined methods.
1149-
*
11501148
* Provides magic import/export method support (fromXML()/toXML(), fromYAML()/toYAML(), etc.).
11511149
* Allows to define default __call() behavior if you overwrite __call()
11521150
*
@@ -1155,7 +1153,7 @@ abstract class IdTable implements ActiveRecordInterface
11551153
*
11561154
* @throws \Propel\Runtime\Exception\BadMethodCallException
11571155
*
1158-
* @return array|string
1156+
* @return mixed
11591157
*/
11601158
public function __call($name, $params)
11611159
{

0 commit comments

Comments
 (0)