Fix issues reported by phpstan

Created on 7 June 2024, 6 months ago

Problem/Motivation

------ ----------------------------------------------------------------------
Line src/Flysystem/Sftp.php
------ ----------------------------------------------------------------------
21 Class Drupal\flysystem_sftp\Flysystem\Sftp implements unknown
interface Drupal\flysystem\Plugin\FlysystemPluginInterface.
πŸ’‘ Learn more at https://phpstan.org/user-guide/discovering-symbols
23 Class Drupal\flysystem_sftp\Flysystem\Sftp uses unknown trait
Drupal\flysystem\Plugin\FlysystemUrlTrait.
πŸ’‘ Learn more at https://phpstan.org/user-guide/discovering-symbols
52 Instantiated class Drupal\flysystem\Flysystem\Adapter\MissingAdapter
not found.
πŸ’‘ Learn more at https://phpstan.org/user-guide/discovering-symbols
------ ----------------------------------------------------------------------
------ ---------------------------------------------------------------------
Line src/Tests/ModuleInstallUninstallWebTest.php
------ ---------------------------------------------------------------------
17 Class Drupal\flysystem_sftp\Tests\ModuleInstallUninstallWebTest
extends unknown class
Drupal\flysystem\Tests\ModuleInstallUninstallWebTest.
πŸ’‘ Learn more at https://phpstan.org/user-guide/discovering-symbols
------ ---------------------------------------------------------------------
[ERROR] Found 4 errors

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States cbfannin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @cbfannin
  • πŸ‡ΊπŸ‡ΈUnited States cbfannin

    I thought adding league/flysystem or drupal/flysystem would fix the unknown interface and unknown class errors. I was successful at adding league/flysystem but still seeing the errors locally. Requiring drupal/flysystem I would get minimum stability issues even if I set minimum stability to alpha.

    It's quite possible I just have no clue what I am doing here so if you sort this out, please explain. Thanks!

Production build 0.71.5 2024