1

Enterprise Architectツールを使用してリバースエンジニアリングを行い、PHPでコンポーネント図を作成しようとしています。しかし、実行しようとするとエラーが発生します。エラー ログは次のとおりです。

There was an error parsing C:\Users\Utente\Dropbox\FourBit\Ingegneria\PROGETTO\Componenti Progetto\Class\Client.php  on line 9.  Unexpected symbol: [   
There was an error parsing C:\Users\Utente\Dropbox\FourBit\Ingegneria\PROGETTO\Componenti Progetto\Class\Sensor.php  on line 9.  Unexpected symbol: [   
There was an error parsing C:\Users\Utente\Dropbox\FourBit\Ingegneria\PROGETTO\Componenti Progetto\Class\Site.php  on line 9.  Unexpected symbol: [ 
There was an error parsing C:\Users\Utente\Dropbox\FourBit\Ingegneria\PROGETTO\Componenti Progetto\Class\User.php  on line 17.  Unexpected symbol: [    
There was an error parsing C:\Users\Utente\Dropbox\FourBit\Ingegneria\PROGETTO\Componenti Progetto\Class\Client.php  on line 9.  Unexpected symbol: [   
There was an error parsing C:\Users\Utente\Dropbox\FourBit\Ingegneria\PROGETTO\Componenti Progetto\Class\Sensor.php  on line 9.  Unexpected symbol: [   
There was an error parsing C:\Users\Utente\Dropbox\FourBit\Ingegneria\PROGETTO\Componenti Progetto\Class\Site.php  on line 9.  Unexpected symbol: [ 
There was an error parsing C:\Users\Utente\Dropbox\FourBit\Ingegneria\PROGETTO\Componenti Progetto\Class\User.php  on line 17.  Unexpected symbol: [    
There was an error parsing C:\Users\Utente\Dropbox\FourBit\Ingegneria\PROGETTO\Componenti Progetto\Class\Client.php  on line 10.  Unexpected symbol: ,  
There was an error parsing C:\Users\Utente\Dropbox\FourBit\Ingegneria\PROGETTO\Componenti Progetto\Class\Sensor.php  on line 10.  Unexpected symbol: ,  
There was an error parsing C:\Users\Utente\Dropbox\FourBit\Ingegneria\PROGETTO\Componenti Progetto\Class\Site.php  on line 10.  Unexpected symbol: ,    
There was an error parsing C:\Users\Utente\Dropbox\FourBit\Ingegneria\PROGETTO\Componenti Progetto\Class\User.php  on line 18.  Unexpected symbol: ,    
There was an error parsing C:\Users\Utente\Dropbox\FourBit\Ingegneria\PROGETTO\Componenti Progetto\Class\Client.php  on line 9.  Unexpected symbol: [   
There was an error parsing C:\Users\Utente\Dropbox\FourBit\Ingegneria\PROGETTO\Componenti Progetto\Class\Sensor.php  on line 9.  Unexpected symbol: [   
There was an error parsing C:\Users\Utente\Dropbox\FourBit\Ingegneria\PROGETTO\Componenti Progetto\Class\Site.php  on line 9.  Unexpected symbol: [ 
There was an error parsing C:\Users\Utente\Dropbox\FourBit\Ingegneria\PROGETTO\Componenti Progetto\Class\User.php  on line 17.  Unexpected symbol: [    

たとえば、次はClient.phpのコードです。

<?php

    namespace App;

    use Illuminate\Database\Eloquent\Model;

    class Client extends Model
    {
        protected $fillable = [
            'PI', 'BusinessName'
        ];

        public function address()
        {
            return $this->belongsTo(Address::class);
        }

        public function users()
        {
            return $this->hasMany(User::class);
        }

エラーの解析は、保護された $fillable = [ 'PI', 'BusinessName' ]; にあります。 これが役立つかどうかはわかりませんが、フレームワークとして Laravel を使用しています。誰でも私を助けることができますか?

4

2 に答える 2