When a schema as some properties of number type, they are typed as BigDecimal instead of number in the exported model. In php it must be float.
v3.0.7
The schema can be taken from a similar issue https://github.com/swagger-api/swagger-codegen/issues/8855
here is a part of my schema:

java -jar swagger-codegen-cli.jar generate \
-i http://127.0.0.1:8980/swagger.json \
-l php \
-o .
the result will be
class Price {
protected static $swaggerTypes = [
'currency' => 'string',
'value' => 'BigDecimal'
];
And it will throw an error Class 'BigDecimal' not found

https://github.com/swagger-api/swagger-codegen/issues/8855
float must be used instead of BigDecimal
Any estimate when this will be available on swaggerhub.com CodeGen? Currently the PHP output is generated by Swagger Codegen version: 3.0.9 and this issue still exists, so we need to fix the generated client by hand every time we export it.
@bkonetzny this can be automated though
sed -i -- 's/BigDecimal/float/g' lib/Model/*.php
sed -i -- 's/BigDecimal/float/g' lib/Api/*.php
It can be correct by use of --type-mappings BigDecimal=float
java -jar swagger-codegen-cli.jar generate \
-i http://127.0.0.1:8980/swagger.json \
-l php \
--type-mappings BigDecimal=float \
-o .
Most helpful comment
It can be correct by use of
--type-mappings BigDecimal=float