filsh / yii2-oauth2-server

A wrapper for implementing an OAuth2 Server(https://github.com/bshaffer/oauth2-server-php)
MIT License
332 stars 167 forks source link

Error applying migrations #99

Closed memclutter closed 4 years ago

memclutter commented 8 years ago

This error appears when you start migration:

PHP Warning 'yii\base\ErrorException' with message 'Declaration of m140501_075311_add_oauth2_server::primaryKey($columns) should be compatible with yii\db\Migration::primaryKey($length = NULL)'
cpmoser commented 8 years ago

Easy to fix, just change the primaryKey method in the migration in m140501_075311_add_oauth2_server.php to add the default value:

public function primaryKey($columns = null)

I guess they added the default value to the Migration class at some point? Anyway, this should probably be fixed in the repo.

cmoser4m commented 8 years ago

Note: looks like it's already been fixed in master, probably just not in the version that's on packagist.