Giter Site home page Giter Site logo

"Uses" and "Extend" about php-generator HOT 4 CLOSED

nette avatar nette commented on July 23, 2024
"Uses" and "Extend"

from php-generator.

Comments (4)

dg avatar dg commented on July 23, 2024

Both yii\db\ActiveRecord and Yii\db\ActiveRecord will be resolved to Yii\db\ActiveRecord, or not? I.e. there is no difference.

https://3v4l.org/HkpSm -> Fatal error: Class 'Yii\db\ActiveRecord' not found

from php-generator.

carono avatar carono commented on July 23, 2024

I expect the class to be yii\db\ActiveRecord, because it has nothing to do with the previously specified Yii and I specify this class directly in $class->addExtend('yii\db\ActiveRecord');. In this case, yii\db\ActiveRecord and Yii\db\ActiveRecord this is not the same thing.

from php-generator.

dg avatar dg commented on July 23, 2024

Look at this example https://3v4l.org/HkpSm, they are the same because PHP is case insensitive.

from php-generator.

carono avatar carono commented on July 23, 2024

Yes, I looked at the demo more closely, indeed, this is normal behavior, for me it's unexpected, I'm sorry for the trouble.

from php-generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.