Skip to content

Encryption of php files is not currently supported. These files will be copied without change. #1

Description

@giganticlab

What version of this package are you using?
^1.0

What operating system, Node.js, and npm version?
Laravel 11
What happened?
Show warning "Encryption of php files is not currently supported. These files will be copied without change." when run "php artisan encrypt-source"
What did you expect to happen?
The message 'Encryption of php files is not currently supported. These files will be copied without change.' should not appear.
Are you willing to submit a pull request to fix this bug?
Fixed Issue :

private function encryptFile($filePath, $destination, $keyLength)
....
.... 
if ($extension == 'blade.php' || ($extension !== 'php' && $extension !== 'php.old')) {
          if (!in_array($extension, $this->warned)) {
              $this->warn("Encryption of $extension files is not currently supported. These files will be copied without change.");
              $this->warned[] = $extension;
          }
          File::copy(base_path($filePath), base_path("$destination/$filePath"));

          return;
        }
....
....
}

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