file)) { throw FileNotFound::new($this->file); } $contents = file_get_contents($this->file); assert($contents !== false); $config = json_decode($contents, true); if (json_last_error() !== JSON_ERROR_NONE) { throw JsonNotValid::new(); } if (isset($config['migrations_paths'])) { $config['migrations_paths'] = $this->getDirectoriesRelativeToFile( $config['migrations_paths'], $this->file ); } return (new ConfigurationArray($config))->getConfiguration(); } }