T
T
Twelfth Doctor2017-05-07 21:22:05
PHP
Twelfth Doctor, 2017-05-07 21:22:05

Error in Composer.json. Where to fix?

Hello! Tell me - where is the error in composer.json

{
  "autoload" : {
    "psr-4":{
      "Somenamespace\\": "classes/"
    }
  }
  "require" : {
      "illuminate/database": "^5.4",
      "illuminate/cookie": "^5.4"
  }

}

Error:
[RuntimeException]
Too many arguments.
And please tell me - if I load a class into Composer, is it possible to use this construction: Class B is connected through Composer
class A extends class B {}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cat Anton, 2017-05-07
@verdex

Comma before "require".
No.
php.net/manual/sr/keyword.extends.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question