Skip to content

Commit

Permalink
Stub thing
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Nov 8, 2023
1 parent c2a3412 commit f8f3527
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
1 change: 0 additions & 1 deletion inc/taginjection.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
* -------------------------------------------------------------------------
*/

/** @phpstan-ignore-next-line */
class PluginTagTagInjection extends PluginTagTag implements PluginDatainjectionInjectionInterface

Check failure on line 31 in inc/taginjection.class.php

View workflow job for this annotation

GitHub Actions / GLPI 10.0.x - php:8.0 - mysql:8.0 / Continuous integration

Class PluginTagTagInjection implements unknown interface PluginDatainjectionInjectionInterface.

Check failure on line 31 in inc/taginjection.class.php

View workflow job for this annotation

GitHub Actions / GLPI 10.0.x - php:7.4 - mysql:5.7 / Continuous integration

Class PluginTagTagInjection implements unknown interface PluginDatainjectionInjectionInterface.

Check failure on line 31 in inc/taginjection.class.php

View workflow job for this annotation

GitHub Actions / GLPI 10.0.x - php:8.1 - mariadb:10.2 / Continuous integration

Class PluginTagTagInjection implements unknown interface PluginDatainjectionInjectionInterface.

Check failure on line 31 in inc/taginjection.class.php

View workflow job for this annotation

GitHub Actions / GLPI 10.0.x - php:8.2 - mariadb:11.0 / Continuous integration

Class PluginTagTagInjection implements unknown interface PluginDatainjectionInjectionInterface.

Check failure on line 31 in inc/taginjection.class.php

View workflow job for this annotation

GitHub Actions / GLPI 10.0.x - php:8.3-rc - mysql:8.0 / Continuous integration

Class PluginTagTagInjection implements unknown interface PluginDatainjectionInjectionInterface.
{
public static function getTable($classname = null)
Expand Down
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ parameters:
- ../../src
stubFiles:
- ../../stubs/glpi_constants.php
- stubs/PluginDatainjectionInjectionInterface.php
rules:
- GlpiProject\Tools\PHPStan\Rules\GlobalVarTypeRule
40 changes: 40 additions & 0 deletions stubs/PluginDatainjectionInjectionInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?php

/**
* -------------------------------------------------------------------------
* DataInjection plugin for GLPI
* -------------------------------------------------------------------------
*
* LICENSE
*
* This file is part of DataInjection.
*
* DataInjection is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* DataInjection is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with DataInjection. If not, see <http://www.gnu.org/licenses/>.
* -------------------------------------------------------------------------
* @copyright Copyright (C) 2007-2023 by DataInjection plugin team.
* @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html
* @link https://github.com/pluginsGLPI/datainjection
* -------------------------------------------------------------------------
*/

if (!defined('GLPI_ROOT')) {

This comment has been minimized.

Copy link
@cedric-anne

cedric-anne Nov 8, 2023

Contributor

This will block the analysis, I guess.

die("Sorry. You can't access directly to this file");
}

/**
* Interface to implement for each type to inject
**/
interface PluginDatainjectionInjectionInterface
{
}

0 comments on commit f8f3527

Please sign in to comment.