mirror of https://github.com/sualko/cloud_bbb
chore: psalm bump 5.0 (warning webmozart/path-util is abandoned)
Signed-off-by: Sebastien Marinier <sebastien.marinier@arawa.fr>pull/301/head
parent
33f6701713
commit
2b9267d04a
|
@ -21,7 +21,7 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: composer i
|
||||
- name: Install dependencies
|
||||
run: composer require --dev nextcloud/ocp:${{ matrix.ocp-version }} psr/container symfony/service-contracts
|
||||
run: composer require --dev nextcloud/ocp:${{ matrix.ocp-version }} symfony/service-contracts
|
||||
- name: Run coding standards check
|
||||
run: composer run psalm
|
||||
|
||||
|
|
|
@ -17,7 +17,8 @@
|
|||
"nextcloud/coding-standard": "^1.0.0",
|
||||
"phpstan/phpstan": "^0.12.29",
|
||||
"nextcloud/ocp": "^25.0 || ^26.0 || ^27.0",
|
||||
"vimeo/psalm": "^4.5"
|
||||
"vimeo/psalm": "^5.0",
|
||||
"psr/container": "^1.1.2"
|
||||
},
|
||||
"config": {
|
||||
"optimize-autoloader": true,
|
||||
|
|
|
@ -6,11 +6,15 @@ use OCA\BigBlueButton\AppInfo\Application;
|
|||
use OCA\BigBlueButton\Event\MeetingEndedEvent;
|
||||
use OCA\BigBlueButton\Event\MeetingStartedEvent;
|
||||
use OCA\BigBlueButton\Event\RecordingReadyEvent;
|
||||
use OCA\BigBlueButton\Event\RoomEvent;
|
||||
use OCP\Activity\IManager as IActivityManager;
|
||||
use OCP\EventDispatcher\Event;
|
||||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\IUserSession;
|
||||
|
||||
/**
|
||||
* @template-implements IEventListener<RoomEvent>
|
||||
*/
|
||||
class MeetingListener implements IEventListener {
|
||||
/** @var IActivityManager */
|
||||
private $activityManager;
|
||||
|
|
|
@ -5,10 +5,14 @@ namespace OCA\BigBlueButton\Activity;
|
|||
use OCA\BigBlueButton\AppInfo\Application;
|
||||
use OCA\BigBlueButton\Event\RoomCreatedEvent;
|
||||
use OCA\BigBlueButton\Event\RoomDeletedEvent;
|
||||
use OCA\BigBlueButton\Event\RoomEvent;
|
||||
use OCP\Activity\IManager as IActivityManager;
|
||||
use OCP\EventDispatcher\Event;
|
||||
use OCP\EventDispatcher\IEventListener;
|
||||
|
||||
/**
|
||||
* @template-implements IEventListener<RoomEvent>
|
||||
*/
|
||||
class RoomListener implements IEventListener {
|
||||
/** @var IActivityManager */
|
||||
private $activityManager;
|
||||
|
|
|
@ -5,6 +5,7 @@ namespace OCA\BigBlueButton\Activity;
|
|||
use OCA\BigBlueButton\AppInfo\Application;
|
||||
use OCA\BigBlueButton\Db\Room;
|
||||
use OCA\BigBlueButton\Db\RoomShare;
|
||||
use OCA\BigBlueButton\Event\RoomEvent;
|
||||
use OCA\BigBlueButton\Event\RoomShareCreatedEvent;
|
||||
use OCA\BigBlueButton\Event\RoomShareDeletedEvent;
|
||||
use OCA\BigBlueButton\Service\RoomService;
|
||||
|
@ -13,6 +14,9 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\IGroupManager;
|
||||
|
||||
/**
|
||||
* @template-implements IEventListener<RoomEvent>
|
||||
*/
|
||||
class RoomShareListener implements IEventListener {
|
||||
/** @var IActivityManager */
|
||||
private $activityManager;
|
||||
|
|
|
@ -7,6 +7,9 @@ use OCP\AppFramework\Db\QBMapper;
|
|||
use OCP\DB\QueryBuilder\IQueryBuilder;
|
||||
use OCP\IDBConnection;
|
||||
|
||||
/**
|
||||
* @template-extends QBMapper<Restriction>
|
||||
*/
|
||||
class RestrictionMapper extends QBMapper {
|
||||
public function __construct(IDBConnection $db) {
|
||||
parent::__construct($db, 'bbb_restrictions', Restriction::class);
|
||||
|
|
|
@ -7,6 +7,9 @@ use OCP\AppFramework\Db\QBMapper;
|
|||
use OCP\DB\QueryBuilder\IQueryBuilder;
|
||||
use OCP\IDBConnection;
|
||||
|
||||
/**
|
||||
* @template-extends QBMapper<Room>
|
||||
*/
|
||||
class RoomMapper extends QBMapper {
|
||||
public function __construct(IDBConnection $db) {
|
||||
parent::__construct($db, 'bbb_rooms', Room::class);
|
||||
|
|
|
@ -7,6 +7,9 @@ use OCP\AppFramework\Db\QBMapper;
|
|||
use OCP\DB\QueryBuilder\IQueryBuilder;
|
||||
use OCP\IDBConnection;
|
||||
|
||||
/**
|
||||
* @template-extends QBMapper<RoomShare>
|
||||
*/
|
||||
class RoomShareMapper extends QBMapper {
|
||||
public function __construct(IDBConnection $db) {
|
||||
parent::__construct($db, 'bbb_room_shares', RoomShare::class);
|
||||
|
|
|
@ -9,6 +9,9 @@ use OCP\EventDispatcher\Event;
|
|||
use OCP\EventDispatcher\IEventListener;
|
||||
use OCP\User\Events\UserDeletedEvent;
|
||||
|
||||
/**
|
||||
* @template-implements IEventListener<UserDeletedEvent>
|
||||
*/
|
||||
class UserDeletedListener implements IEventListener {
|
||||
/** @var IActivityManager */
|
||||
private $activityManager;
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
xmlns="https://getpsalm.org/schema/config"
|
||||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
|
||||
errorBaseline="tests/psalm-baseline.xml"
|
||||
findUnusedCode="false"
|
||||
findUnusedBaselineEntry="false"
|
||||
>
|
||||
<projectFiles>
|
||||
<directory name="lib" />
|
||||
|
|
Loading…
Reference in New Issue