Skip to content

Empty array on lang file throws offset error when syncing #82

@lacrc

Description

@lacrc
  • Laravel Version: 5.7.12
  • PHP Version: 7.2.9

Description:

By far not an urgent issue, just thought I should report that running php artisan langman:sync throws ErrorException : Undefined offset: 2 when "Synchronizing language files..." if you have any php lang file that only returns an empty array.

Steps to reproduce:

  • Create a .php file in any of your lang folders;
  • Edit it so it returns just an empty array:
<?php

return [
    //
];
  • Run php artisan langman:sync

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions